File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed
Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,18 @@ if(EMSCRIPTEN)
3030 )
3131else ()
3232 IF (WIN32 )
33- set (LLVM_LINK_COMPONENTS "" )
33+ llvm_map_components_to_libnames(
34+ llvm_libs
35+ ${LLVM_TARGETS_TO_BUILD}
36+ orcjit
37+ support
38+ core
39+ irreader
40+ codegen
41+ mc
42+ mcparser
43+ option
44+ )
3445 else ()
3546 set (LLVM_LINK_COMPONENTS
3647 ${LLVM_TARGETS_TO_BUILD}
@@ -140,14 +151,15 @@ else()
140151 ${link_libs}
141152 )
142153 else ()
143- llvm_add_library (clangCppInterOp
144- DISABLE_LLVM_LINK_LLVM_DYLIB
154+ add_library (clangCppInterOp
155+ SHARED
145156 CppInterOp.cpp
146157 CXCppInterOp.cpp
147158 ${DLM}
148- LINK_LIBS
149- ${link_libs}
150- )
159+ )
160+ target_link_libraries (clangCppInterOp
161+ PRIVATE ${llvm_libs}
162+ )
151163 endif ()
152164endif ()
153165
You can’t perform that action at this time.
0 commit comments