Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the mimalloc option to speed up the compiler on Windows #76563

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hjyamauchi
Copy link
Contributor

This is disabled by default.

@hjyamauchi
Copy link
Contributor Author

@swift-ci please test

utils/build.ps1 Outdated
@@ -102,6 +102,9 @@ in batch file format instead of executing them.
.PARAMETER HostArchName
The architecture where the toolchain will execute.
.PARAMETER EnableMimalloc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should generalise this to something like -allocator ... to experiment with other allocators.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

[hashtable]$Arch
)

if ($Arch -eq $ArchX64) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we abort if a different architecture is passed? Or is this being allowed for some other reason? As this currently stands, it feels like we could silently fail to enable something :(.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if we do that, the cross-compiling CI would likely fail

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, why would it fail? The check should be for what host we are compiling for, not what the build is right?

@hjyamauchi
Copy link
Contributor Author

@swift-ci please test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants