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 18
18
config .name = "LLVM"
19
19
20
20
# 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
+ )
22
32
23
33
# suffixes: A list of file extensions to treat as test files. This is overriden
24
34
# by individual lit.local.cfg files in the test subdirectories.
@@ -278,6 +288,7 @@ def get_asan_rtlib():
278
288
]
279
289
)
280
290
291
+
281
292
# Find (major, minor) version of ptxas
282
293
def ptxas_version (ptxas ):
283
294
ptxas_cmd = subprocess .Popen ([ptxas , "--version" ], stdout = subprocess .PIPE )
@@ -602,7 +613,6 @@ def host_unwind_supports_jit():
602
613
# compact-unwind only, and JIT'd registration is not available before
603
614
# macOS 14.0.
604
615
if platform .system () == "Darwin" :
605
-
606
616
assert "arm64" in config .host_triple or "x86_64" in config .host_triple
607
617
608
618
if "x86_64" in config .host_triple :
You can’t perform that action at this time.
0 commit comments