File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ if(EMSCRIPTEN)
22 set_property (GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE )
33 set (LLVM_LINK_COMPONENTS "" )
44else ()
5- if (NOT WIN32 )
65 set (LLVM_LINK_COMPONENTS
76 ${LLVM_TARGETS_TO_BUILD}
87 BinaryFormat
1110 OrcJit
1211 Support
1312 )
14- else ()
15- set (LLVM_LINK_COMPONENTS "" )
16- endif ()
1713 # FIXME: Investigate why this needs to be conditionally included.
1814 if ("LLVMFrontendDriver" IN_LIST LLVM_AVAILABLE_LIBS)
1915 list (APPEND LLVM_LINK_COMPONENTS FrontendDriver)
@@ -107,6 +103,7 @@ endif()
107103 )
108104 endif (LLVM_LINK_LLVM_DYLIB)
109105endif ()
106+ if (NOT WIN32 )
110107 add_llvm_library(clangCppInterOp
111108 DISABLE_LLVM_LINK_LLVM_DYLIB
112109 CppInterOp.cpp
@@ -115,6 +112,14 @@ endif()
115112 LINK_LIBS
116113 ${link_libs}
117114 )
115+ else ()
116+ add_llvm_library(clangCppInterOp
117+ DISABLE_LLVM_LINK_LLVM_DYLIB
118+ CppInterOp.cpp
119+ CXCppInterOp.cpp
120+ ${DLM}
121+ )
122+ endif ()
118123
119124if (EMSCRIPTEN)
120125 # FIXME: When dynamically linking the Emscripten shared library to the
You can’t perform that action at this time.
0 commit comments