[PATCH] D14041: Use $GO_EXECUTABLE in Go-based lit tests

Andrew Wilkins via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 24 00:27:26 PDT 2015


axw created this revision.
axw added a reviewer: pcc.
axw added a subscriber: llvm-commits.

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.

http://reviews.llvm.org/D14041

Files:
  test/lit.cfg

Index: test/lit.cfg
===================================================================
--- test/lit.cfg
+++ test/lit.cfg
@@ -240,6 +240,8 @@
        '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
 
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14041.38297.patch
Type: text/x-patch
Size: 440 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151024/36ad5dcd/attachment.bin>


More information about the llvm-commits mailing list