Skip to content

Commit 5fdb3b8

Browse files
committedJul 27, 2016
[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
1 parent bc36b15 commit 5fdb3b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎llgo/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ configure_file(
77
${CMAKE_CURRENT_BINARY_DIR}/cmd/gllgo/config.h)
88
include_directories(${CMAKE_CURRENT_BINARY_DIR}/cmd/gllgo)
99

10+
list(APPEND LLVM_GO_PACKAGES "llvm.org/llgo=${CMAKE_CURRENT_SOURCE_DIR}")
11+
1012
llvm_add_go_executable(llgo llvm.org/llgo/cmd/gllgo ALL DEPENDS
1113
build/context.go
1214
cmd/gllgo/gllgo.go

0 commit comments

Comments
 (0)