diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2021-08-31 18:02:02 +0300 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2021-08-31 18:57:47 +0300 |
commit | 10d78a06baa217b8a4b853eff962e9ae719a8a45 (patch) | |
tree | 57f2992539c7f68d897dd8b07770fa5a337e1d7c /clang/test/utils | |
parent | b8debabb775b6d9eec5aa16f1b0c3428cc076bcb (diff) | |
download | llvm-10d78a06baa217b8a4b853eff962e9ae719a8a45.zip llvm-10d78a06baa217b8a4b853eff962e9ae719a8a45.tar.gz llvm-10d78a06baa217b8a4b853eff962e9ae719a8a45.tar.bz2 |
[llvm-lit] unbreak clang-only builds by not assuming llvm-lit in build dir
Reviewed By: tstellar
Differential Revision: https://reviews.llvm.org/D109000
Diffstat (limited to 'clang/test/utils')
-rw-r--r-- | clang/test/utils/update_cc_test_checks/lit.local.cfg | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/test/utils/update_cc_test_checks/lit.local.cfg b/clang/test/utils/update_cc_test_checks/lit.local.cfg index 6b4f5cf..d57fa68 100644 --- a/clang/test/utils/update_cc_test_checks/lit.local.cfg +++ b/clang/test/utils/update_cc_test_checks/lit.local.cfg @@ -21,8 +21,10 @@ script_path = os.path.join(config.llvm_src_root, 'utils', 'update_cc_test_checks.py') assert os.path.isfile(script_path) # Windows: llvm-lit.py, Linux: llvm-lit -llvm_lit = glob.glob(os.path.join(config.llvm_tools_dir, 'llvm-lit*'))[0] -lit = config.llvm_external_lit if config.llvm_external_lit else shell_quote(llvm_lit) +if config.llvm_external_lit: + lit = config.llvm_external_lit +else: + lit = shell_quote(glob.glob(os.path.join(config.llvm_tools_dir, 'llvm-lit*'))[0]) python = shell_quote(config.python_executable) config.substitutions.append( ('%update_cc_test_checks', "%s %s %s" % ( |