[CMake] Add missing component dependencies, to fix building for mingw with BUILD_SHARED_LIBS

Differential Revision: https://reviews.llvm.org/D73840
This commit is contained in:
Martin Storsjö 2020-02-01 22:46:27 +02:00
parent f8865c0194
commit c1c9819ef9
3 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,10 @@ add_llvm_pass_plugin(Bye
DEPENDS
intrinsics_gen
BUILDTREE_ONLY
LINK_COMPONENTS
ipo
Core
Support
)
install(TARGETS ${name} RUNTIME DESTINATION examples)

View File

@ -11,7 +11,7 @@ if( NOT LLVM_REQUIRES_RTTI )
endif()
if(WIN32 OR CYGWIN)
set(LLVM_LINK_COMPONENTS Core)
set(LLVM_LINK_COMPONENTS Core Support)
endif()
add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY

View File

@ -14,7 +14,7 @@ add_llvm_unittest(PluginsTests
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
)