Skip to content

Commit 786e66f

Browse files
committed
Adjust to mimalloc v3.0.1
1 parent 647fe54 commit 786e66f

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

platforms/Windows/bld/bld.wixproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang;
77
TOOLCHAIN_ROOT_USR_LIB_SWIFT_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\swift\clang;
88
ENABLE_MIMALLOC=$(ENABLE_MIMALLOC);
9+
WORKAROUND_MIMALLOC_ISSUE_997=$(WORKAROUND_MIMALLOC_ISSUE_997);
910
</DefineConstants>
1011
</PropertyGroup>
1112

platforms/Windows/bld/bld.wxs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,31 @@
484484

485485
<ComponentGroup Id="mimalloc" Directory="_usr_bin">
486486
<?if $(ENABLE_MIMALLOC) == true ?>
487+
<?if $(ProductArchitecture) = "amd64" ?>
488+
<Component>
489+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect.dll" />
490+
</Component>
491+
<?if $(WORKAROUND_MIMALLOC_ISSUE_997) ?>
492+
<Component>
493+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect-arm64.dll" />
494+
</Component>
495+
<?endif?>
496+
<?elseif $(ProductArchitecture) = "arm64" ?>
497+
<Component>
498+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect-arm64.dll" />
499+
</Component>
500+
<?if $(WORKAROUND_MIMALLOC_ISSUE_997) ?>
501+
<Component>
502+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect.dll" />
503+
</Component>
504+
<?endif?>
505+
<?endif?>
506+
487507
<Component>
488-
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect.dll" />
508+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect$(MIMALLOC_REDIRECT_SUFFIX).dll" />
489509
</Component>
490510
<Component>
491-
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-override.dll" />
511+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc.dll" />
492512
</Component>
493513
<?endif?>
494514
</ComponentGroup>

0 commit comments

Comments
 (0)