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

Yaron Keren via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 31 08:58:06 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rG10d78a06baa2: [llvm-lit] unbreak clang-only builds by not assuming llvm-lit in build dir (authored by yaron.keren).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109000/new/

https://reviews.llvm.org/D109000

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


Index: clang/test/utils/update_cc_test_checks/lit.local.cfg
===================================================================
--- clang/test/utils/update_cc_test_checks/lit.local.cfg
+++ clang/test/utils/update_cc_test_checks/lit.local.cfg
@@ -21,8 +21,10 @@
                            '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" % (


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109000.369718.patch
Type: text/x-patch
Size: 841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210831/9a8fc884/attachment.bin>


More information about the cfe-commits mailing list