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

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


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: OverMighty (overmighty)

<details>
<summary>Changes</summary>

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


---
Full diff: https://github.com/llvm/llvm-project/pull/99869.diff


1 Files Affected:

- (modified) libc/test/src/math/performance_testing/CMakeLists.txt (+1-1) 


``````````diff
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
 )

``````````

</details>


https://github.com/llvm/llvm-project/pull/99869


More information about the libc-commits mailing list