[Lldb-commits] [PATCH] D41726: [test] Use full PATH lookup for tools

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Jan 6 02:21:47 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL321932: [test] Use full PATH lookup for tools (authored by mgorny, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D41726?vs=128609&id=128843#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D41726

Files:
  lldb/trunk/lit/lit.cfg


Index: lldb/trunk/lit/lit.cfg
===================================================================
--- lldb/trunk/lit/lit.cfg
+++ lldb/trunk/lit/lit.cfg
@@ -91,11 +91,11 @@
                           pattern)
     tool_pipe = tool_match.group(2)
     tool_name = tool_match.group(4)
-    tool_path = lit.util.which(tool_name, config.llvm_tools_dir)
+    tool_path = lit.util.which(tool_name, config.environment['PATH'])
     if not tool_path:
         # Warn, but still provide a substitution.
         lit_config.note(
-            'Did not find ' + tool_name + ' in ' + config.llvm_tools_dir)
+            'Did not find ' + tool_name + ' in ' + config.environment['PATH'])
     config.substitutions.append((pattern, tool_pipe + tool_path))
 
 # Shell execution


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41726.128843.patch
Type: text/x-patch
Size: 762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180106/dae23a87/attachment.bin>


More information about the lldb-commits mailing list