test: check if go_executable is set

llvm-svn: 254189
This commit is contained in:
Andrew Wilkins 2015-11-27 04:51:13 +00:00
parent b7394b22fd
commit 572fe6e95e
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ 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"):
if (tool_name == "llvm-go" and config.go_executable is not None):
tool_path += " go=" + config.go_executable
return tool_name, tool_path, tool_pipe