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 | 3fc5b3f66743bd301fbca5c68dcf81fc9928cd89 (patch) | |
tree | c248ae5b8068fb6b776ed56f4a57b30f54c0c2bc /llgo | |
parent | 5c552b6d98899071643ec59e6127670ed158494b (diff) |
[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
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 |