From b6bbdc0193960d6254bd8bd431ef490b3189da7c Mon Sep 17 00:00:00 2001 From: Andrew Wilkins Date: Fri, 27 Nov 2015 04:44:51 +0000 Subject: [PATCH] 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254187 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/lit.cfg | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/lit.cfg b/test/lit.cfg index f299d0f4451..7e80a7f94a7 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -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 -- 2.34.1