[CMake] Add missing component dependencies, to fix building for mingw with BUILD_SHAR...
authorMartin Storsjö <martin@martin.st>
Sat, 1 Feb 2020 20:46:27 +0000 (22:46 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 5 Feb 2020 11:10:27 +0000 (13:10 +0200)
Differential Revision: https://reviews.llvm.org/D73840

llvm/examples/Bye/CMakeLists.txt
llvm/tools/bugpoint-passes/CMakeLists.txt
llvm/unittests/Passes/CMakeLists.txt

index 3206f90..60eaded 100644 (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)
index eea3e23..6df49d7 100644 (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
index 3e83b52..8f8147e 100644 (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
   )