diff --git a/lib/Transforms/Hello/CMakeLists.txt b/lib/Transforms/Hello/CMakeLists.txt index e724dbc8be8..3851b35871f 100644 --- a/lib/Transforms/Hello/CMakeLists.txt +++ b/lib/Transforms/Hello/CMakeLists.txt @@ -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 ) diff --git a/tools/bugpoint-passes/CMakeLists.txt b/tools/bugpoint-passes/CMakeLists.txt index b7ee62673c7..de68bb5d31d 100644 --- a/tools/bugpoint-passes/CMakeLists.txt +++ b/tools/bugpoint-passes/CMakeLists.txt @@ -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 )