[libc-commits] [libc] fc7a893 - [libc] Remove -ffreestanding when building MPFR wrapper. (#107637)
via libc-commits
libc-commits at lists.llvm.org
Fri Sep 6 13:54:39 PDT 2024
Author: lntue
Date: 2024-09-06T16:54:36-04:00
New Revision: fc7a8936208847b66df9b5f93ba2222b93b9f8b6
URL: https://github.com/llvm/llvm-project/commit/fc7a8936208847b66df9b5f93ba2222b93b9f8b6
DIFF: https://github.com/llvm/llvm-project/commit/fc7a8936208847b66df9b5f93ba2222b93b9f8b6.diff
LOG: [libc] Remove -ffreestanding when building MPFR wrapper. (#107637)
MPFR/GMP headers do not work with -ffreestanding flags.
Added:
Modified:
libc/utils/MPFRWrapper/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt
index e6d3b5af9dc297..941d3cf004d483 100644
--- a/libc/utils/MPFRWrapper/CMakeLists.txt
+++ b/libc/utils/MPFRWrapper/CMakeLists.txt
@@ -5,6 +5,8 @@ if(LIBC_TESTS_CAN_USE_MPFR)
mpfr_inc.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