[libc-commits] [libc] [libc] Add missing dependency on src.__support.macros.config (PR #98552)

via libc-commits libc-commits at lists.llvm.org
Thu Jul 11 14:12:37 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

<details>
<summary>Changes</summary>

We automatically inject this dependency into all object libraries that use the libc CMake functions, but libc_diff_test_utils uses add_library so we need to add this dependency manually.

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


1 Files Affected:

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


``````````diff
diff --git a/libc/test/src/math/performance_testing/CMakeLists.txt b/libc/test/src/math/performance_testing/CMakeLists.txt
index bf88fbb85c5d7..787e733fd3e14 100644
--- a/libc/test/src/math/performance_testing/CMakeLists.txt
+++ b/libc/test/src/math/performance_testing/CMakeLists.txt
@@ -3,6 +3,7 @@ add_library(
   Timer.cpp
   Timer.h
 )
+add_dependencies(libc_diff_test_utils libc.src.__support.macros.config)
 
 # A convenience target to build all performance tests.
 add_custom_target(libc-math-performance-tests)

``````````

</details>


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


More information about the libc-commits mailing list