[libc-commits] [libc] [libc] Implement lit-based test execution for Libc (PR #178746)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Fri Jan 30 11:02:39 PST 2026
================
@@ -0,0 +1,85 @@
+#===============================================================================
+# Lit Test Infrastructure for LLVM libc
+#
+# This module provides functions to set up lit-based testing for libc.
+#
+# Lit discovers and runs the test executables created by the
+# add_libc_test() infrastructure. No separate build rules are needed.
+#===============================================================================
+
+# Guard against double inclusion
+if(LIBC_LIT_TEST_RULES_INCLUDED)
+ return()
+endif()
+set(LIBC_LIT_TEST_RULES_INCLUDED TRUE)
+
+# Include LLVM's lit infrastructure
+include(AddLLVM)
----------------
petrhosek wrote:
We already include `AddLLVM` in the runtimes build here:
https://github.com/llvm/llvm-project/blob/042c839873c7f67c1fc1eace4b34d4953b16b3a0/runtimes/CMakeLists.txt#L199
Given that we no longer support `LLVM_ENABLE_PROJECTS=libc`, we shouldn't be needing this.
https://github.com/llvm/llvm-project/pull/178746
More information about the libc-commits
mailing list