OSDN Git Service

[CMake] Add LLVM_LINK_COMPONENTS to loadable modules, LLVMHello and BugpointPasses...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 13 Jul 2014 13:36:48 +0000 (13:36 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 13 Jul 2014 13:36:48 +0000 (13:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212904 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Hello/CMakeLists.txt
tools/bugpoint-passes/CMakeLists.txt

index e724dbc..3851b35 100644 (file)
@@ -6,6 +6,10 @@ if( NOT LLVM_REQUIRES_RTTI )
   endif()
 endif()
 
+if(WIN32 OR CYGWIN)
+  set(LLVM_LINK_COMPONENTS Core Support)
+endif()
+
 add_llvm_loadable_module( LLVMHello
   Hello.cpp
   )
index b7ee626..de68bb5 100644 (file)
@@ -10,6 +10,10 @@ if( NOT LLVM_REQUIRES_RTTI )
   endif()
 endif()
 
+if(WIN32 OR CYGWIN)
+  set(LLVM_LINK_COMPONENTS Core)
+endif()
+
 add_llvm_loadable_module( BugpointPasses
   TestPasses.cpp
   )