Skip to content

Commit c4fc6ee

Browse files
committed
[CMake] Add LLVM_LINK_COMPONENTS to loadable modules, LLVMHello and BugpointPasses, on Win32.
llvm-svn: 212904
1 parent 44f64ea commit c4fc6ee

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

llvm/lib/Transforms/Hello/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ if( NOT LLVM_REQUIRES_RTTI )
66
endif()
77
endif()
88

9+
if(WIN32 OR CYGWIN)
10+
set(LLVM_LINK_COMPONENTS Core Support)
11+
endif()
12+
913
add_llvm_loadable_module( LLVMHello
1014
Hello.cpp
1115
)

llvm/tools/bugpoint-passes/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ if( NOT LLVM_REQUIRES_RTTI )
1010
endif()
1111
endif()
1212

13+
if(WIN32 OR CYGWIN)
14+
set(LLVM_LINK_COMPONENTS Core)
15+
endif()
16+
1317
add_llvm_loadable_module( BugpointPasses
1418
TestPasses.cpp
1519
)

0 commit comments

Comments
 (0)