[clang] [Clang][Cygwin] Disable shared libs on Cygwin by default (PR #138119)
Mateusz MikuĊa via cfe-commits
cfe-commits at lists.llvm.org
Thu May 1 06:02:46 PDT 2025
================
@@ -106,7 +106,8 @@ if (LLVM_EXPORTED_SYMBOL_FILE)
DEPENDS ${LIBCLANG_VERSION_SCRIPT_FILE})
endif()
-if(LLVM_ENABLE_PIC OR (WIN32 AND NOT LIBCLANG_BUILD_STATIC))
+if((NOT (WIN32 OR CYGWIN) AND LLVM_ENABLE_PIC) OR
+ ((WIN32 OR CYGWIN) AND NOT LIBCLANG_BUILD_STATIC))
----------------
mati865 wrote:
Indeed, that's unfortunate and has always been a problem.
`LLVM_ENABLE_PIC` defaults to ON on Windows, so that condition never worked unless you explicitly disabled `LLVM_ENABLE_PIC` as found out by @jeremyd2019.
https://github.com/llvm/llvm-project/pull/138119
More information about the cfe-commits
mailing list