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 @@ -26,9 +26,10 @@ endif()
2626add_clang_subdirectory(c-index-test )
2727
2828add_clang_subdirectory(clang-refactor)
29- # For MinGW we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.
29+ # For MinGW/Cygwin we only enable shared library if LLVM_LINK_LLVM_DYLIB=ON.
3030# Without that option resulting library is too close to 2^16 DLL exports limit.
31- if (UNIX OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR (MINGW AND LLVM_LINK_LLVM_DYLIB))
31+ if ((UNIX AND NOT CYGWIN ) OR (MSVC AND LLVM_BUILD_LLVM_DYLIB_VIS) OR
32+ ((MINGW OR CYGWIN ) AND LLVM_LINK_LLVM_DYLIB))
3233 add_clang_subdirectory(clang-shlib)
3334endif ()
3435
Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ if (LLVM_EXPORTED_SYMBOL_FILE)
106106 DEPENDS ${LIBCLANG_VERSION_SCRIPT_FILE} )
107107endif ()
108108
109- if (LLVM_ENABLE_PIC OR (WIN32 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)
111112endif ()
112113
You can’t perform that action at this time.
0 commit comments