File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ endif()
2121add_clang_subdirectory(c-index-test )
2222
2323add_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.
2525# 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))
2728 add_clang_subdirectory(clang-shlib)
2829endif ()
2930
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ if (LLVM_EXPORTED_SYMBOL_FILE)
111111 DEPENDS ${LIBCLANG_VERSION_SCRIPT_FILE} )
112112endif ()
113113
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))
115116 set (ENABLE_SHARED SHARED)
116117endif ()
117118
You can’t perform that action at this time.
0 commit comments