Skip to content

Commit 839cdb5

Browse files
authored
[libc][complex] remove -ffreestanding flag from MPFRUtils compile options (#124702)
Fixes buildbot error in #121261
1 parent d606f68 commit 839cdb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/utils/MPFRWrapper/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ if(LIBC_TESTS_CAN_USE_MPFR)
2828
MPFRUtils.h
2929
)
3030
_get_common_test_compile_options(compile_options "" "")
31+
# mpfr/gmp headers do not work with -ffreestanding flag.
32+
list(REMOVE_ITEM compile_options "-ffreestanding")
3133
target_compile_options(libcMPFRWrapper PRIVATE -O3 ${compile_options})
3234
add_dependencies(
3335
libcMPFRWrapper

0 commit comments

Comments
 (0)