Skip to content

Commit b81759a

Browse files
mati865jeremyd2019
andcommitted
[Clang][Cygwin] Avoid unwanted shared libclang builds
Co-authored-by: jeremyd2019 <[email protected]>
1 parent b6605cf commit b81759a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/tools/libclang/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ if (LLVM_EXPORTED_SYMBOL_FILE)
106106
DEPENDS ${LIBCLANG_VERSION_SCRIPT_FILE})
107107
endif()
108108

109-
if(LLVM_ENABLE_PIC OR ((WIN32 OR CYGWIN) AND NOT LIBCLANG_BUILD_STATIC))
109+
if((NOT (WIN32 OR CYGWIN) AND LLVM_ENABLE_PIC) OR
110+
((WIN32 OR CYGWIN) AND NOT LIBCLANG_BUILD_STATIC))
110111
set(ENABLE_SHARED SHARED)
111112
endif()
112113

0 commit comments

Comments
 (0)