[clang] 10d78a0 - [llvm-lit] unbreak clang-only builds by not assuming llvm-lit in build dir

Yaron Keren via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 31 08:57:55 PDT 2021


Author: Yaron Keren
Date: 2021-08-31T18:57:47+03:00
New Revision: 10d78a06baa217b8a4b853eff962e9ae719a8a45

URL: https://github.com/llvm/llvm-project/commit/10d78a06baa217b8a4b853eff962e9ae719a8a45
DIFF: https://github.com/llvm/llvm-project/commit/10d78a06baa217b8a4b853eff962e9ae719a8a45.diff

LOG: [llvm-lit] unbreak clang-only builds by not assuming llvm-lit in build dir

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D109000

Added: 
    

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

Removed: 
    


################################################################################
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 6b4f5cfc62ed3..d57fa6832d425 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" % (


        


More information about the cfe-commits mailing list