Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc] Add missing dependency on src.__support.macros.config #98552

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

petrhosek
Copy link
Member

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.

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.
@petrhosek
Copy link
Member Author

This should address the build failure seen here: https://lab.llvm.org/buildbot/#/builders/153/builds/2695

@llvmbot
Copy link
Collaborator

llvmbot commented Jul 11, 2024

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

Changes

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

@petrhosek petrhosek merged commit 7d6a6e6 into llvm:main Jul 11, 2024
6 of 7 checks passed
aaryanshukla pushed a commit to aaryanshukla/llvm-project that referenced this pull request Jul 14, 2024
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants