[PATCH] D44391: Export LLVM_DYLIB_COMPONENTS in LLVMConfig.cmake

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 12 09:13:23 PDT 2018


labath created this revision.
labath added reviewers: beanz, mgorny.

This is needed so that external projects (e.g. a standalone build of
lldb) can link to the LLVM shared library via the USE_SHARED argument of
llvm_config. Without this, llvm_config would add LLVM to the link list,
but then also add the constituent static libraries, resulting in
multiply defined symbols.


Repository:
  rL LLVM

https://reviews.llvm.org/D44391

Files:
  cmake/modules/LLVMConfig.cmake.in


Index: cmake/modules/LLVMConfig.cmake.in
===================================================================
--- cmake/modules/LLVMConfig.cmake.in
+++ cmake/modules/LLVMConfig.cmake.in
@@ -13,6 +13,8 @@
 
 set(LLVM_AVAILABLE_LIBS @LLVM_AVAILABLE_LIBS@)
 
+set(LLVM_DYLIB_COMPONENTS @LLVM_DYLIB_COMPONENTS@)
+
 set(LLVM_ALL_TARGETS @LLVM_ALL_TARGETS@)
 
 set(LLVM_TARGETS_TO_BUILD @LLVM_TARGETS_TO_BUILD@)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44391.138031.patch
Type: text/x-patch
Size: 405 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180312/97dc6320/attachment.bin>


More information about the llvm-commits mailing list