mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 06:59:32 +03:00
Fix ARM64 MSVC linker problem
Close https://github.com/microsoft/mimalloc/issues/426
This commit is contained in:
parent
d482555675
commit
45321237b5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue