llvm-project/clang/test/Tooling/lit.local.cfg
Nick Sarnie f2541cee44
[clang] Remove usage of llvm-spirv in clang LIT tests (#131158)
We use the backend now, so remove the requirement from the only test
that actually executes the translator and remove the LIT requirement
variable.

Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
2025-03-14 15:18:13 +00:00

12 lines
555 B
INI

import lit.util
if not config.root.clang_staticanalyzer:
config.unsupported = True
if config.spirv_tools_tests:
config.available_features.add("spirv-tools")
config.substitutions.append(("spirv-dis", os.path.join(config.llvm_tools_dir, "spirv-dis")))
config.substitutions.append(("spirv-val", os.path.join(config.llvm_tools_dir, "spirv-val")))
config.substitutions.append(("spirv-as", os.path.join(config.llvm_tools_dir, "spirv-as")))
config.substitutions.append(("spirv-link", os.path.join(config.llvm_tools_dir, "spirv-link")))