[clang] b06a014 - [cmake] Reenable libclang.dll when LLVM_ENABLE_PIC (#138343)
via cfe-commits
cfe-commits at lists.llvm.org
Mon May 5 04:37:09 PDT 2025
Author: Arthur Eubanks
Date: 2025-05-05T13:37:06+02:00
New Revision: b06a014f01ffa279a7add9e22d21fcc2d2fb208f
URL: https://github.com/llvm/llvm-project/commit/b06a014f01ffa279a7add9e22d21fcc2d2fb208f
DIFF: https://github.com/llvm/llvm-project/commit/b06a014f01ffa279a7add9e22d21fcc2d2fb208f.diff
LOG: [cmake] Reenable libclang.dll when LLVM_ENABLE_PIC (#138343)
This was disabled for Windows/Mingw in #138343, but it's actually
linkable and is being used by some people.
Added:
Modified:
clang/tools/libclang/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
index 37a939ffcada7..ac7a9a8db37c0 100644
--- a/clang/tools/libclang/CMakeLists.txt
+++ b/clang/tools/libclang/CMakeLists.txt
@@ -106,8 +106,7 @@ if (LLVM_EXPORTED_SYMBOL_FILE)
DEPENDS ${LIBCLANG_VERSION_SCRIPT_FILE})
endif()
-if((NOT (WIN32 OR CYGWIN) AND LLVM_ENABLE_PIC) OR
- ((WIN32 OR CYGWIN) AND NOT LIBCLANG_BUILD_STATIC))
+if(LLVM_ENABLE_PIC OR ((WIN32 OR CYGWIN) AND NOT LIBCLANG_BUILD_STATIC))
set(ENABLE_SHARED SHARED)
endif()
More information about the cfe-commits
mailing list