Skip to content

Commit 60275ac

Browse files
committed
fixes
1 parent 9e08971 commit 60275ac

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

llvm/test/lit.cfg.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,17 @@
1818
config.name = "LLVM"
1919

2020
# testFormat: The test format to use to interpret tests.
21-
config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
21+
extra_substitutions = extra_substitutions = (
22+
[
23+
(r"\| not FileCheck .*", "| tee /dev/null"),
24+
(r"\| FileCheck .*", "| tee /dev/null"),
25+
]
26+
if config.enable_profcheck
27+
else []
28+
)
29+
config.test_format = lit.formats.ShTest(
30+
not llvm_config.use_lit_shell, extra_substitutions
31+
)
2232

2333
# suffixes: A list of file extensions to treat as test files. This is overriden
2434
# by individual lit.local.cfg files in the test subdirectories.
@@ -278,6 +288,7 @@ def get_asan_rtlib():
278288
]
279289
)
280290

291+
281292
# Find (major, minor) version of ptxas
282293
def ptxas_version(ptxas):
283294
ptxas_cmd = subprocess.Popen([ptxas, "--version"], stdout=subprocess.PIPE)
@@ -602,7 +613,6 @@ def host_unwind_supports_jit():
602613
# compact-unwind only, and JIT'd registration is not available before
603614
# macOS 14.0.
604615
if platform.system() == "Darwin":
605-
606616
assert "arm64" in config.host_triple or "x86_64" in config.host_triple
607617

608618
if "x86_64" in config.host_triple:

0 commit comments

Comments
 (0)