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)
2
2
set_property (GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE )
3
3
set (LLVM_LINK_COMPONENTS "" )
4
4
else ()
5
- if (NOT WIN32 )
6
5
set (LLVM_LINK_COMPONENTS
7
6
${LLVM_TARGETS_TO_BUILD}
8
7
BinaryFormat
11
10
OrcJit
12
11
Support
13
12
)
14
- else ()
15
- set (LLVM_LINK_COMPONENTS "" )
16
- endif ()
17
13
# FIXME: Investigate why this needs to be conditionally included.
18
14
if ("LLVMFrontendDriver" IN_LIST LLVM_AVAILABLE_LIBS )
19
15
list (APPEND LLVM_LINK_COMPONENTS FrontendDriver )
@@ -107,6 +103,7 @@ endif()
107
103
)
108
104
endif (LLVM_LINK_LLVM_DYLIB )
109
105
endif ()
106
+ if (NOT WIN32 )
110
107
add_llvm_library (clangCppInterOp
111
108
DISABLE_LLVM_LINK_LLVM_DYLIB
112
109
CppInterOp.cpp
@@ -115,6 +112,14 @@ endif()
115
112
LINK_LIBS
116
113
${link_libs}
117
114
)
115
+ else ()
116
+ add_llvm_library (clangCppInterOp
117
+ DISABLE_LLVM_LINK_LLVM_DYLIB
118
+ CppInterOp.cpp
119
+ CXCppInterOp.cpp
120
+ ${DLM}
121
+ )
122
+ endif ()
118
123
119
124
if (EMSCRIPTEN )
120
125
# FIXME: When dynamically linking the Emscripten shared library to the
You can’t perform that action at this time.
0 commit comments