Skip to content

Commit 88496a4

Browse files
authored
Merge pull request #367 from hjyamauchi/mimallocv3.0.1
Adapt to mimalloc v3.0.1
2 parents 22fb91d + 5f3c538 commit 88496a4

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
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: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,27 @@
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?>
487506
<Component>
488-
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect.dll" />
489-
</Component>
490-
<Component>
491-
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-override.dll" />
507+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc.dll" />
492508
</Component>
493509
<?endif?>
494510
</ComponentGroup>

0 commit comments

Comments
 (0)