[libc-commits] [libc] 5b8479b - [libc][CMake] Set library type of libc_diff_test_utils to STATIC (#99869)

via libc-commits libc-commits at lists.llvm.org
Mon Jul 22 05:42:16 PDT 2024


Author: OverMighty
Date: 2024-07-22T14:42:12+02:00
New Revision: 5b8479bc28a8641f02be3d64f87770b9e0b1a427

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

LOG: [libc][CMake] Set library type of libc_diff_test_utils to STATIC (#99869)

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

Added: 
    

Modified: 
    libc/test/src/math/performance_testing/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/test/src/math/performance_testing/CMakeLists.txt b/libc/test/src/math/performance_testing/CMakeLists.txt
index a75becba04d07..2ec5364059b17 100644
--- a/libc/test/src/math/performance_testing/CMakeLists.txt
+++ b/libc/test/src/math/performance_testing/CMakeLists.txt
@@ -1,5 +1,5 @@
 add_library(
-  libc_
diff _test_utils
+  libc_
diff _test_utils STATIC
   Timer.cpp
   Timer.h
 )


        


More information about the libc-commits mailing list