From cf9af88805cf0d5a7957e6634ad4255d3f28d500 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 17 Nov 2017 22:51:43 +0000 Subject: 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 --- utils/lit/lit/llvm/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/lit') 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) -- cgit v1.2.3