Skip to content

Commit 2a9ddc1

Browse files
authored
Update CMakeLists.txt
1 parent 9a32988 commit 2a9ddc1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

lib/Interpreter/CMakeLists.txt

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,17 @@ if(EMSCRIPTEN)
2929
PUBLIC "SHELL: -s WASM_BIGINT"
3030
)
3131
else()
32-
set(LLVM_LINK_COMPONENTS
33-
${LLVM_TARGETS_TO_BUILD}
34-
BinaryFormat
35-
Core
36-
Object
37-
OrcJit
38-
Support
39-
)
32+
IF(WIN32)
33+
set(LLVM_LINK_COMPONENTS "")
34+
else()
35+
set(LLVM_LINK_COMPONENTS
36+
${LLVM_TARGETS_TO_BUILD}
37+
BinaryFormat
38+
Core
39+
Object
40+
OrcJit
41+
Support
42+
)
4043
# FIXME: Investigate why this needs to be conditionally included.
4144
if ("LLVMFrontendDriver" IN_LIST LLVM_AVAILABLE_LIBS)
4245
list(APPEND LLVM_LINK_COMPONENTS FrontendDriver)

0 commit comments

Comments
 (0)