Skip to content

Commit

Permalink
Fix an issue with llvm lit tool substitutions.
Browse files Browse the repository at this point in the history
When using an installed clang with an in-tree llvm, we were not
searching in the right paths for the tools.

llvm-svn: 318564
  • Loading branch information
Zachary Turner committed Nov 17, 2017
1 parent 56a1f07 commit dfeb170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/lit/lit/llvm/config.py
Expand Up @@ -316,7 +316,7 @@ def use_llvm_tool(self, name, search_env=None, required=False, quiet=False):
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)
Expand Down

0 comments on commit dfeb170

Please sign in to comment.