[libcxx-commits] [libcxx] [llvm] [libc++] Optionally support filecheck-based tests (PR #165769)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 3 01:01:18 PST 2025


================
@@ -355,6 +355,14 @@ def _mingwSupportsModules(cfg):
         name="has-no-zdump",
         when=lambda cfg: runScriptExitCode(cfg, ["zdump --version"]) != 0,
     ),
+    # Whether the `filecheck` executable is available. Note that this corresponds to
+    # a Python port of LLVM's FileCheck, not LLVM's actual FileCheck program, since
+    # that one requires building parts of LLVM that we don't want to build when merely
+    # testing libc++.
+    Feature(
+        name="has-filecheck",
+        when=lambda cfg: runScriptExitCode(cfg, ["filecheck --version"]) == 0,
+    ),
----------------
philnik777 wrote:

Why can't we do something similar to clang-tidy where we have `%{clang-tidy}`, which resolves to the executable we found on the system?

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


More information about the libcxx-commits mailing list