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

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


https://github.com/petrhosek created https://github.com/llvm/llvm-project/pull/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.

>From 297184f4dc43071eebe6958d3681daf398f4ce88 Mon Sep 17 00:00:00 2001
From: Petr Hosek <phosek at google.com>
Date: Thu, 11 Jul 2024 14:10:05 -0700
Subject: [PATCH] [libc] Add missing dependency on src.__support.macros.config

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.
---
 libc/test/src/math/performance_testing/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

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