Merge pull request #897 from madsmtm/patch-1

macOS: Fix linking statically
This commit is contained in:
Daan 2024-05-19 15:49:50 -07:00 committed by GitHub
commit d6ad058e44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -422,6 +422,7 @@ __attribute__((constructor(0)))
#else #else
__attribute__((constructor)) // seems not supported by g++-11 on the M1 __attribute__((constructor)) // seems not supported by g++-11 on the M1
#endif #endif
__attribute__((used))
static void _mi_macos_override_malloc(void) { static void _mi_macos_override_malloc(void) {
malloc_zone_t* purgeable_zone = NULL; malloc_zone_t* purgeable_zone = NULL;