diff options
author | Andrew Wilkins <axwalk@gmail.com> | 2016-07-27 03:01:00 +0000 |
---|---|---|
committer | Andrew Wilkins <axwalk@gmail.com> | 2016-07-27 03:01:00 +0000 |
commit | 5fdb3b89da109dbb081081873b09164e1e190d0c (patch) | |
tree | 1491aa8a311278383be0d1ef535d4522612b80cb /llgo | |
parent | bc36b15253b20026e62a180e8a38d0a89c1d7663 (diff) | |
download | bcm5719-llvm-5fdb3b89da109dbb081081873b09164e1e190d0c.tar.gz bcm5719-llvm-5fdb3b89da109dbb081081873b09164e1e190d0c.zip |
[llgo] add llgo source path to LLVM_GO_PACKAGES
Summary:
To support the use of LLVM_EXTERNAL_LLGO_SOURCE_DIR,
with llgo situated in a location other than tools/llgo,
we add the llgo source directory to LLVM_GO_PACKAGES.
Reviewers: pcc
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D21635
llvm-svn: 276828
Diffstat (limited to 'llgo')
-rw-r--r-- | llgo/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llgo/CMakeLists.txt b/llgo/CMakeLists.txt index c42eb4b43af..abe89624aa1 100644 --- a/llgo/CMakeLists.txt +++ b/llgo/CMakeLists.txt @@ -7,6 +7,8 @@ configure_file( ${CMAKE_CURRENT_BINARY_DIR}/cmd/gllgo/config.h) include_directories(${CMAKE_CURRENT_BINARY_DIR}/cmd/gllgo) +list(APPEND LLVM_GO_PACKAGES "llvm.org/llgo=${CMAKE_CURRENT_SOURCE_DIR}") + llvm_add_go_executable(llgo llvm.org/llgo/cmd/gllgo ALL DEPENDS build/context.go cmd/gllgo/gllgo.go |