[libc-commits] [libc] [libc] Implement lit-based test execution for Libc (PR #178746)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Thu Jan 29 23:49:24 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)
----------------
petrhosek wrote:
```suggestion
include_guard()
```
What's the reason for needing this in the first place?
https://github.com/llvm/llvm-project/pull/178746
More information about the libc-commits
mailing list