[libc-commits] [libc] [libc] Implement lit-based test execution for Libc (PR #178746)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri Jan 30 10:48:44 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)
----------------
michaelrj-google wrote:

I'm a little concerned about cmake ordering if we need to include something from the main LLVM folder.

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


More information about the libc-commits mailing list