[clang] Add DllMain entry point to `libclang.dll` (PR #171465)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 09:06:02 PST 2025
================
@@ -0,0 +1,24 @@
+
+
+#include <windows.h>
+
+extern "C" {
+
+int rpmalloc_initialize(void);
+void rpmalloc_finalize(void);
+void rpmalloc_thread_initialize(void);
+void rpmalloc_thread_finalize(int release_caches);
----------------
GkvJwa wrote:
The reason is the same as the reason for checking LLVM_ENABLE_RPMALLOC in CMake: the overloaded malloc lacks a global macro definition.
https://github.com/llvm/llvm-project/pull/171465
More information about the cfe-commits
mailing list