[llvm] r254189 - test: check if go_executable is set

Andrew Wilkins via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 20:51:13 PST 2015


Author: axw
Date: Thu Nov 26 22:51:13 2015
New Revision: 254189

URL: http://llvm.org/viewvc/llvm-project?rev=254189&view=rev
Log:
test: check if go_executable is set


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=254189&r1=254188&r2=254189&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Thu Nov 26 22:51:13 2015
@@ -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
 




More information about the llvm-commits mailing list