[llvm] r254187 - Use $GO_EXECUTABLE in Go-based lit tests
Andrew Wilkins via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 26 20:44:51 PST 2015
Author: axw
Date: Thu Nov 26 22:44:51 2015
New Revision: 254187
URL: http://llvm.org/viewvc/llvm-project?rev=254187&view=rev
Log:
Use $GO_EXECUTABLE in Go-based lit tests
Summary:
When running tests, pass the GO_EXECUTABLE CMake
cache variable to llvm-go. The "go" binary may
not be in $PATH, or may be different to the one
passed to CMake.
Reviewers: pcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14041
Modified:
llvm/trunk/test/lit.cfg
Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=254187&r1=254186&r2=254187&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Thu Nov 26 22:44:51 2015
@@ -240,6 +240,8 @@ def find_tool_substitution(pattern):
'LLVM_ENABLE_MACHINE_VERIFIER' in os.environ and
os.environ['LLVM_ENABLE_MACHINE_VERIFIER'] == "1"):
tool_path += " -verify-machineinstrs"
+ if (tool_name == "llvm-go"):
+ tool_path += " go=" + config.go_executable
return tool_name, tool_path, tool_pipe
More information about the llvm-commits
mailing list