Skip to content

Commit fc7a893

Browse files
authored
[libc] Remove -ffreestanding when building MPFR wrapper. (llvm#107637)
MPFR/GMP headers do not work with -ffreestanding flags.
1 parent 775c507 commit fc7a893

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/utils/MPFRWrapper/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ if(LIBC_TESTS_CAN_USE_MPFR)
55
mpfr_inc.h
66
)
77
_get_common_test_compile_options(compile_options "" "")
8+
# mpfr/gmp headers do not work with -ffreestanding flag.
9+
list(REMOVE_ITEM compile_options "-ffreestanding")
810
target_compile_options(libcMPFRWrapper PRIVATE -O3 ${compile_options})
911
add_dependencies(
1012
libcMPFRWrapper

0 commit comments

Comments
 (0)