Skip to content

Commit 44a5c0f

Browse files
committed
Debug CMakeLists.txt
1 parent 150a2c2 commit 44a5c0f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ if(EMSCRIPTEN)
22
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
33
set(LLVM_LINK_COMPONENTS "")
44
else()
5-
if(NOT WIN32)
65
set(LLVM_LINK_COMPONENTS
76
${LLVM_TARGETS_TO_BUILD}
87
BinaryFormat
@@ -11,9 +10,6 @@ else()
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)
109105
endif()
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

119124
if(EMSCRIPTEN)
120125
# FIXME: When dynamically linking the Emscripten shared library to the

0 commit comments

Comments
 (0)