From 45321237b53435e75b1d8545b6b37c40cddef898 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 21 Oct 2021 21:15:08 +0800 Subject: [PATCH] Fix ARM64 MSVC linker problem Close https://github.com/microsoft/mimalloc/issues/426 --- src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.c b/src/init.c index c088cada..a712f9f1 100644 --- a/src/init.c +++ b/src/init.c @@ -571,7 +571,7 @@ static void mi_process_done(void) { return 0; } typedef int(*_crt_cb)(void); - #ifdef _M_X64 + #if defined(_M_X64) || defined(_M_ARM64) __pragma(comment(linker, "/include:" "_mi_msvc_initu")) #pragma section(".CRT$XIU", long, read) #else