summaryrefslogtreecommitdiff
path: root/utils/lit
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-11-17 22:51:43 +0000
committerZachary Turner <zturner@google.com>2017-11-17 22:51:43 +0000
commitcf9af88805cf0d5a7957e6634ad4255d3f28d500 (patch)
tree05636ee9947a9f039d93d4955730c1a148ff31dc /utils/lit
parentfc1a0ac68ee3b97aa52841b63bb316442fb880ae (diff)
Fix an issue with llvm lit tool substitutions.
When using an installed clang with an in-tree llvm, we were not searching in the right paths for the tools. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/llvm/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/lit/llvm/config.py b/utils/lit/lit/llvm/config.py
index 798f08af1be..565220c06f0 100644
--- a/utils/lit/lit/llvm/config.py
+++ b/utils/lit/lit/llvm/config.py
@@ -316,7 +316,7 @@ class LLVMConfig(object):
return tool
# Otherwise look in the path.
- tool = lit.util.which(name, self.config.llvm_tools_dir)
+ tool = lit.util.which(name, self.config.environment['PATH'])
if required and not tool:
message = "couldn't find '{}' program".format(name)