Merge pull request #472 from Brooooooklyn/patch-1

Fix ARM64 MSVC linker problem
This commit is contained in:
Daan 2021-10-21 15:16:43 -07:00 committed by GitHub
commit 1fc83cda05
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -571,7 +571,7 @@ static void mi_process_done(void) {
return 0; return 0;
} }
typedef int(*_crt_cb)(void); typedef int(*_crt_cb)(void);
#ifdef _M_X64 #if defined(_M_X64) || defined(_M_ARM64)
__pragma(comment(linker, "/include:" "_mi_msvc_initu")) __pragma(comment(linker, "/include:" "_mi_msvc_initu"))
#pragma section(".CRT$XIU", long, read) #pragma section(".CRT$XIU", long, read)
#else #else