diff options
author | Andrew Wilkins <axwalk@gmail.com> | 2015-11-27 04:44:51 +0000 |
---|---|---|
committer | Andrew Wilkins <axwalk@gmail.com> | 2015-11-27 04:44:51 +0000 |
commit | caa3b51ad20177d69e0cf50fed0d9f936ff687dc (patch) | |
tree | 1a64f6cdb0fea6fc4898b103643ee29aeb1c73ad | |
parent | 8e8183b8bdd810e874c0cc0ab7f4809b16cd0302 (diff) | |
download | bcm5719-llvm-caa3b51ad20177d69e0cf50fed0d9f936ff687dc.tar.gz bcm5719-llvm-caa3b51ad20177d69e0cf50fed0d9f936ff687dc.zip |
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
llvm-svn: 254187
-rw-r--r-- | llvm/test/lit.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/lit.cfg b/llvm/test/lit.cfg index f299d0f4451..7e80a7f94a7 100644 --- a/llvm/test/lit.cfg +++ b/llvm/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 |