[PATCH] D73840: [CMake] Add missing component dependencies, to fix building for mingw with BUILD_SHARED_LIBS
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 1 13:11:20 PST 2020
mstorsjo created this revision.
mstorsjo added reviewers: beanz, rnk, smeenai.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73840
Files:
llvm/examples/Bye/CMakeLists.txt
llvm/tools/bugpoint-passes/CMakeLists.txt
llvm/unittests/Passes/CMakeLists.txt
Index: llvm/unittests/Passes/CMakeLists.txt
===================================================================
--- llvm/unittests/Passes/CMakeLists.txt
+++ llvm/unittests/Passes/CMakeLists.txt
@@ -14,7 +14,7 @@
export_executable_symbols(PluginsTests)
target_link_libraries(PluginsTests PRIVATE LLVMTestingSupport)
-set(LLVM_LINK_COMPONENTS)
+set(LLVM_LINK_COMPONENTS Support Core)
add_llvm_library(TestPlugin MODULE BUILDTREE_ONLY
TestPlugin.cpp
)
Index: llvm/tools/bugpoint-passes/CMakeLists.txt
===================================================================
--- llvm/tools/bugpoint-passes/CMakeLists.txt
+++ llvm/tools/bugpoint-passes/CMakeLists.txt
@@ -11,7 +11,7 @@
endif()
if(WIN32 OR CYGWIN)
- set(LLVM_LINK_COMPONENTS Core)
+ set(LLVM_LINK_COMPONENTS Core Support)
endif()
add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY
Index: llvm/examples/Bye/CMakeLists.txt
===================================================================
--- llvm/examples/Bye/CMakeLists.txt
+++ llvm/examples/Bye/CMakeLists.txt
@@ -7,6 +7,10 @@
DEPENDS
intrinsics_gen
BUILDTREE_ONLY
+ LINK_COMPONENTS
+ ipo
+ Core
+ Support
)
install(TARGETS ${name} RUNTIME DESTINATION examples)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73840.241900.patch
Type: text/x-patch
Size: 1220 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200201/fe77bae1/attachment.bin>
More information about the llvm-commits
mailing list