Skip to content

Commit 28ad801

Browse files
authored
[SPIR-V] Enable spirv-sim lit substitution unconditionally (#109451)
The uses of spirv-sim aren't gated by LLVM_INCLUDE_SPIRV_TOOLS_TESTS, so the substitution shouldn't be gated either. Fixes tests after #107408
1 parent a065295 commit 28ad801

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

llvm/test/CodeGen/SPIRV/lit.local.cfg

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ if not "SPIRV" in config.root.targets:
33

44
spirv_sim_root = os.path.join(config.llvm_src_root, "utils", "spirv-sim")
55

6+
config.substitutions.append(
7+
(
8+
"spirv-sim",
9+
"'%s' %s" % (config.python_executable,
10+
os.path.join(spirv_sim_root, "spirv-sim.py")),
11+
)
12+
)
13+
614
if config.spirv_tools_tests:
715
config.available_features.add("spirv-tools")
816
config.substitutions.append(("spirv-dis", os.path.join(config.llvm_tools_dir, "spirv-dis")))
917
config.substitutions.append(("spirv-val", os.path.join(config.llvm_tools_dir, "spirv-val")))
1018
config.substitutions.append(("spirv-as", os.path.join(config.llvm_tools_dir, "spirv-as")))
11-
config.substitutions.append(
12-
(
13-
"spirv-sim",
14-
"'%s' %s"
15-
% (config.python_executable, os.path.join(spirv_sim_root, "spirv-sim.py")),
16-
)
17-
)

0 commit comments

Comments
 (0)