File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1818config .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
282293def 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 :
You can’t perform that action at this time.
0 commit comments