Skip to content

Commit d46be24

Browse files
committed
restore spirv-sim substitution
1 parent 39f4d9b commit d46be24

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
if not "SPIRV" in config.root.targets:
22
config.unsupported = True
33

4+
spirv_sim_root = os.path.join(config.llvm_src_root, "utils", "spirv-sim")
5+
46
if config.spirv_tools_tests:
57
config.available_features.add("spirv-tools")
68
config.substitutions.append(("spirv-dis", os.path.join(config.llvm_tools_dir, "spirv-dis")))
79
config.substitutions.append(("spirv-val", os.path.join(config.llvm_tools_dir, "spirv-val")))
10+
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)