[cmake] pass GO_EXECUTABLE to llgo-go
authorAndrew Wilkins <axwalk@gmail.com>
Tue, 21 Jul 2015 00:46:23 +0000 (00:46 +0000)
committerAndrew Wilkins <axwalk@gmail.com>
Tue, 21 Jul 2015 00:46:23 +0000 (00:46 +0000)
commita571970098b987f93d0b1ff4c81e76bea32629de
treed86db67780b9c24400c5e0a50f631310a78035a2
parent5bce8dfa265c7b6256f6e3d70673e3a875ea84d2
[cmake] pass GO_EXECUTABLE to llgo-go

Summary:
When calling llgo-go from the llvm_add_go_executable
cmake function, specify $GO_EXECUTABLE as the go
command to call. Without this, llgo-go searches $PATH
which may be inconsistent with $GO_EXECUTABLE.

Reviewers: pcc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11290

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242749 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake