[libc-commits] [libc] 65b03c2 - [libc] Add libc-test-depends-target (#246242)

via libc-commits libc-commits at lists.llvm.org
Thu Nov 26 00:25:16 PST 2026


Author: Aiden Grossman
Date: 2026-11-26T00:25:11-08:00
New Revision: 65b03c26fa5ba62ca9be4963114d26737fe304c3

URL: https://github.com/llvm/llvm-project/commit/65b03c26fa5ba62ca9be4963114d26737fe304c3
DIFF: https://github.com/llvm/llvm-project/commit/65b03c26fa5ba62ca9be4963114d26737fe304c3.diff

LOG: [libc] Add libc-test-depends-target (#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.

Added: 
    

Modified: 
    libc/test/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/libc/test/CMakeLists.txt b/libc/test/CMakeLists.txt
index 1342acfe68d68..7c3c9ad6d5abc 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