Skip to content

Commit 8d82c7b

Browse files
Merge pull request #381 from swiftlang/revert-375-revert-371-your-allocator
Reland "WiX: simplify mimalloc packaging, require mimalloc"
2 parents 2566533 + 3c00600 commit 8d82c7b

File tree

2 files changed

+13
-19
lines changed

2 files changed

+13
-19
lines changed

platforms/Windows/bld/bld.wixproj

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
TOOLCHAIN_ROOT=$(TOOLCHAIN_ROOT);
66
TOOLCHAIN_ROOT_USR_LIB_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\clang;
77
TOOLCHAIN_ROOT_USR_LIB_SWIFT_CLANG=$(TOOLCHAIN_ROOT)\usr\lib\swift\clang;
8-
ENABLE_MIMALLOC=$(ENABLE_MIMALLOC);
98
WORKAROUND_MIMALLOC_ISSUE_997=$(WORKAROUND_MIMALLOC_ISSUE_997);
109
</DefineConstants>
1110
</PropertyGroup>

platforms/Windows/bld/bld.wxs

+13-18
Original file line numberDiff line numberDiff line change
@@ -483,28 +483,23 @@
483483
</ComponentGroup>
484484

485485
<ComponentGroup Id="mimalloc" Directory="_usr_bin">
486-
<?if $(ENABLE_MIMALLOC) == true ?>
486+
<Component>
487+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc.dll" />
488+
</Component>
489+
<Component>
487490
<?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?>
491+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect.dll" />
496492
<?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?>
493+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect-arm64.dll" />
505494
<?endif?>
495+
</Component>
496+
<?if $(WORKAROUND_MIMALLOC_ISSUE_997) ?>
506497
<Component>
507-
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc.dll" />
498+
<?if $(ProductArchitecture) = "amd64" ?>
499+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect-arm64.dll" />
500+
<?elseif $(ProductArchitecture) = "arm64" ?>
501+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\mimalloc-redirect.dll" />
502+
<?endif?>
508503
</Component>
509504
<?endif?>
510505
</ComponentGroup>

0 commit comments

Comments
 (0)