[libc-commits] [libc] 839cdb5 - [libc][complex] remove -ffreestanding flag from MPFRUtils compile options (#124702)
via libc-commits
libc-commits at lists.llvm.org
Mon Jan 27 21:49:17 PST 2025
Author: Shourya Goel
Date: 2025-01-28T11:19:15+05:30
New Revision: 839cdb58e71fa7b8a132ac9497580cc23a3ae7f7
URL: https://github.com/llvm/llvm-project/commit/839cdb58e71fa7b8a132ac9497580cc23a3ae7f7
DIFF: https://github.com/llvm/llvm-project/commit/839cdb58e71fa7b8a132ac9497580cc23a3ae7f7.diff
LOG: [libc][complex] remove -ffreestanding flag from MPFRUtils compile options (#124702)
Fixes buildbot error in #121261
Added:
Modified:
libc/utils/MPFRWrapper/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt
index 829c2fb2c2f908..8aeee2463dc51f 100644
--- a/libc/utils/MPFRWrapper/CMakeLists.txt
+++ b/libc/utils/MPFRWrapper/CMakeLists.txt
@@ -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
More information about the libc-commits
mailing list