Skip to content

Commit 10d78a0

Browse files
committed
[llvm-lit] unbreak clang-only builds by not assuming llvm-lit in build dir
Reviewed By: tstellar Differential Revision: https://reviews.llvm.org/D109000
1 parent b8debab commit 10d78a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

clang/test/utils/update_cc_test_checks/lit.local.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ script_path = os.path.join(config.llvm_src_root, 'utils',
2121
'update_cc_test_checks.py')
2222
assert os.path.isfile(script_path)
2323
# Windows: llvm-lit.py, Linux: llvm-lit
24-
llvm_lit = glob.glob(os.path.join(config.llvm_tools_dir, 'llvm-lit*'))[0]
25-
lit = config.llvm_external_lit if config.llvm_external_lit else shell_quote(llvm_lit)
24+
if config.llvm_external_lit:
25+
lit = config.llvm_external_lit
26+
else:
27+
lit = shell_quote(glob.glob(os.path.join(config.llvm_tools_dir, 'llvm-lit*'))[0])
2628
python = shell_quote(config.python_executable)
2729
config.substitutions.append(
2830
('%update_cc_test_checks', "%s %s %s" % (

0 commit comments

Comments
 (0)