Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit a4af5b1

Browse files
committed
Correct standalone config to build llvm for windows
Change-Id: Iee736d18cef131647802b212a0c5dcc6b130fbe0
1 parent dadc84b commit a4af5b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ set(LLVM_BUILD_RUNTIME true CACHE BOOL "desc" FORCE)
6666
set(LLVM_ENABLE_TERMINFO false CACHE BOOL "desc" FORCE)
6767
set(LLVM_BUILD_LLVM_DYLIB false CACHE BOOL "desc" FORCE)
6868

69-
if(BUILD_PACKAGE)
70-
set(LLVM_BUILD_LLVM_DYLIB true CACHE BOOL "desc" FORCE)
69+
if(DEFINED BUILD_PACKAGE)
70+
if(NOT WIN32)
71+
set(LLVM_BUILD_LLVM_DYLIB true CACHE BOOL "desc" FORCE)
72+
endif()
7173
set(LLVM_BUILD_TOOLS false CACHE BOOL "desc" FORCE)
7274
endif()
7375

0 commit comments

Comments
 (0)