mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-11 02:41:30 +00:00
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 llvm-svn: 254187
This commit is contained in:
parent
8e8183b8bd
commit
caa3b51ad2
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user