[llvm-go] parameterize $GOPATH construction
authorAndrew Wilkins <axwalk@gmail.com>
Wed, 27 Jul 2016 03:21:51 +0000 (03:21 +0000)
committerAndrew Wilkins <axwalk@gmail.com>
Wed, 27 Jul 2016 03:21:51 +0000 (03:21 +0000)
commit5bf7d8102d9cdaca8d84a80bcb84fb9c29d08269
tree66a959e5135806049edc073f67153453c0d6d3dd
parent5fdb3b89da109dbb081081873b09164e1e190d0c
[llvm-go] parameterize $GOPATH construction

Summary:
To build llgo, you must currently ensure that llgo
is in the tools/llgo directory, due to a hard-coded
path in llvm-go.

To support the use of LLVM_EXTERNAL_LLGO_SOURCE_DIR,
we introduce a flag to llvm-go that enables the
caller to specify the paths to symlink in the
temporary $GOPATH.

Reviewers: pcc

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D21634

llvm-svn: 276829
llvm/cmake/modules/AddLLVM.cmake
llvm/tools/llvm-go/llvm-go.go