Skip to content

Commit 5f74d4e

Browse files
committed
use lit which
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent a758efe commit 5f74d4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Tooling/lit.local.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import shutil
1+
import lit.util
22

33
if not config.root.clang_staticanalyzer:
44
config.unsupported = True
@@ -10,5 +10,5 @@ if config.spirv_tools_tests:
1010
config.substitutions.append(("spirv-as", os.path.join(config.llvm_tools_dir, "spirv-as")))
1111
config.substitutions.append(("spirv-link", os.path.join(config.llvm_tools_dir, "spirv-link")))
1212

13-
if shutil.which("llvm-spirv"):
13+
if lit.util.which("llvm-spirv"):
1414
config.available_features.add("llvm-spirv")

0 commit comments

Comments
 (0)