test: check if go_executable is set
authorAndrew Wilkins <axwalk@gmail.com>
Fri, 27 Nov 2015 04:51:13 +0000 (04:51 +0000)
committerAndrew Wilkins <axwalk@gmail.com>
Fri, 27 Nov 2015 04:51:13 +0000 (04:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254189 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 7e80a7f94a777188dc6cc1fbc41994eb9ce75af8..cc4c169dbdddbca1bf2865c2ba5df0f1792d3206 100644 (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