File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ endif()
21
21
add_clang_subdirectory(c-index-test )
22
22
23
23
add_clang_subdirectory(clang-refactor)
24
- # For MinGW we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.
24
+ # For MinGW/Cygwin we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.
25
25
# Without that option resulting library is too close to 2^16 DLL exports limit.
26
- if (UNIX OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR (MINGW AND LLVM_LINK_LLVM_DYLIB))
26
+ if ((UNIX AND NOT CYGWIN ) OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR
27
+ ((MINGW OR CYGWIN ) AND LLVM_LINK_LLVM_DYLIB))
27
28
add_clang_subdirectory(clang-shlib)
28
29
endif ()
29
30
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ if (LLVM_EXPORTED_SYMBOL_FILE)
111
111
DEPENDS ${LIBCLANG_VERSION_SCRIPT_FILE} )
112
112
endif ()
113
113
114
- if (LLVM_ENABLE_PIC OR (WIN32 AND NOT LIBCLANG_BUILD_STATIC))
114
+ if ((NOT (WIN32 OR CYGWIN ) AND LLVM_ENABLE_PIC) OR
115
+ ((WIN32 OR CYGWIN ) AND NOT LIBCLANG_BUILD_STATIC))
115
116
set (ENABLE_SHARED SHARED)
116
117
endif ()
117
118
You can’t perform that action at this time.
0 commit comments