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.

llvm-svn: 318564
This commit is contained in:
Zachary Turner 2017-11-17 22:51:43 +00:00
parent 56a1f07156
commit dfeb170011
1 changed files with 1 additions and 1 deletions

View File

@ -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)