[clang] Add DllMain entry point to `libclang.dll` (PR #171465)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 9 08:33:37 PST 2025


================
@@ -135,6 +135,7 @@ endif()
 add_clang_library(libclang ${ENABLE_SHARED} ${ENABLE_STATIC} INSTALL_WITH_TOOLCHAIN
   OUTPUT_NAME ${output_name}
   ${SOURCES}
+  PARTIAL_SOURCES_INTENDED
----------------
zmodem wrote:

As noted below, I think we should always include DllMain.cpp (on Windows), and then I think we don't need this?

https://github.com/llvm/llvm-project/pull/171465


More information about the cfe-commits mailing list