[PATCH] D21635: [llgo] add llgo source path to LLVM_GO_PACKAGES

Andrew Wilkins via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 22 22:51:30 PDT 2016


axw created this revision.
axw added a reviewer: pcc.
axw added a subscriber: llvm-commits.

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.

http://reviews.llvm.org/D21635

Files:
  CMakeLists.txt

Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -7,6 +7,8 @@
   ${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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21635.61641.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160623/7e55b2f6/attachment.bin>


More information about the llvm-commits mailing list