Skip to content

Commit

Permalink
[libc][complex] remove -ffreestanding flag from MPFRUtils compile opt…
Browse files Browse the repository at this point in the history
…ions (#124702)

Fixes buildbot error in #121261
  • Loading branch information
Sh0g0-1758 authored Jan 28, 2025
1 parent d606f68 commit 839cdb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc/utils/MPFRWrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ if(LIBC_TESTS_CAN_USE_MPFR)
MPFRUtils.h
)
_get_common_test_compile_options(compile_options "" "")
# mpfr/gmp headers do not work with -ffreestanding flag.
list(REMOVE_ITEM compile_options "-ffreestanding")
target_compile_options(libcMPFRWrapper PRIVATE -O3 ${compile_options})
add_dependencies(
libcMPFRWrapper
Expand Down

0 comments on commit 839cdb5

Please sign in to comment.