mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-20 22:19:30 +03:00
Fix building on Windows ARM64
Fixes ``error LNK2001: unresolved external symbol __mi_msvc_initu`` Fixes: https://github.com/microsoft/mimalloc/issues/426 Co-authored-by: Mojca Miklavec <mojca.miklavec@gmail.com> Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
d482555675
commit
0b019d8aff
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue