[libc-commits] [libc] [libc] Add libc-test-depends-target (PR #246242)
Aiden Grossman via libc-commits
libc-commits at lists.llvm.org
Wed Nov 25 21:54:25 PST 2026
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/246242
Other projects in LLVM have a <project>-test-depends target that builds all the targets needed to run tests. This adds an alias to make libc a bit more consistent. I think we want an alias rather than trying to switch over completely given libc still uses the -build convention in other places and there are quite a few CI workflows at this point that use the -build syntax.
>From 75a15d64c2a478b9a306550f0f57776bc26f3b95 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 26 Nov 2026 05:52:57 +0000
Subject: [PATCH] [libc] Add libc-test-depends-target
Other projects in LLVM have a <project>-test-depends target that builds
all the targets needed to run tests. This adds an alias to make libc a
bit more consistent. I think we want an alias rather than trying to
switch over completely given libc still uses the -build convention in
other places and there are quite a few CI workflows at this point that
use the -build syntax.
---
libc/test/CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libc/test/CMakeLists.txt b/libc/test/CMakeLists.txt
index 1342acfe68d683..7c3c9ad6d5abc1 100644
--- a/libc/test/CMakeLists.txt
+++ b/libc/test/CMakeLists.txt
@@ -17,6 +17,9 @@ configure_lit_site_cfg(
)
add_custom_target(check-libc-build)
+# Add a libc-test-depends target that aliases check-libc-build to be
+# consistent with other parts of LLVM.
+add_custom_target(libc-test-depends DEPENDS check-libc-build)
add_lit_testsuite(check-libc
"Running libc tests via lit"
${LIBC_BUILD_DIR}/test
More information about the libc-commits
mailing list