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

via libc-commits libc-commits at lists.llvm.org
Wed Nov 25 21:55:02 PST 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Aiden Grossman (boomanaiden154)

<details>
<summary>Changes</summary>

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.

---
Full diff: https://github.com/llvm/llvm-project/pull/246242.diff


1 Files Affected:

- (modified) libc/test/CMakeLists.txt (+3) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/246242


More information about the libc-commits mailing list