[llvm] r318564 - Fix an issue with llvm lit tool substitutions.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 17 14:51:43 PST 2017
Author: zturner
Date: Fri Nov 17 14:51:43 2017
New Revision: 318564
URL: http://llvm.org/viewvc/llvm-project?rev=318564&view=rev
Log:
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.
Modified:
llvm/trunk/utils/lit/lit/llvm/config.py
Modified: llvm/trunk/utils/lit/lit/llvm/config.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/llvm/config.py?rev=318564&r1=318563&r2=318564&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/llvm/config.py (original)
+++ llvm/trunk/utils/lit/lit/llvm/config.py Fri Nov 17 14:51:43 2017
@@ -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)
More information about the llvm-commits
mailing list