[libc-commits] [libc] f61c9a9 - [libc][CMake] Set library type of libcMPFRWrapper to STATIC (#99527)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 18 14:16:55 PDT 2024


Author: OverMighty
Date: 2024-07-18T23:16:48+02:00
New Revision: f61c9a9485cc359cdd0262e66840e095dbc246c2

URL: https://github.com/llvm/llvm-project/commit/f61c9a9485cc359cdd0262e66840e095dbc246c2
DIFF: https://github.com/llvm/llvm-project/commit/f61c9a9485cc359cdd0262e66840e095dbc246c2.diff

LOG: [libc][CMake] Set library type of libcMPFRWrapper to STATIC (#99527)

Fixes linker errors due to hidden symbols when running CMake with
-DBUILD_SHARED_LIBS=ON.

Added: 
    

Modified: 
    libc/utils/MPFRWrapper/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/utils/MPFRWrapper/CMakeLists.txt b/libc/utils/MPFRWrapper/CMakeLists.txt
index e74b02204ed6f..be0415d0956fa 100644
--- a/libc/utils/MPFRWrapper/CMakeLists.txt
+++ b/libc/utils/MPFRWrapper/CMakeLists.txt
@@ -1,5 +1,5 @@
 if(LIBC_TESTS_CAN_USE_MPFR)
-  add_library(libcMPFRWrapper
+  add_library(libcMPFRWrapper STATIC
     MPFRUtils.cpp
     MPFRUtils.h
     mpfr_inc.h


        


More information about the libc-commits mailing list