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

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


Author: Petr Hosek
Date: 2024-07-11T14:19:23-07:00
New Revision: 7d6a6e6dc92ce9200cdf26b756e9c9a0dbb2a469

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

LOG: [libc] Add missing dependency on `src.__support.macros.config` (#98552)

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.

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


        


More information about the libc-commits mailing list