Support aarch64 Linux with page sizes >= 16k #6075
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
This adds support for aarch64 Linux with page sizes >= 16k, by compiling with jemalloc configured with largest possible page size.
It will still work for all other aarch64 Linux systems. To give you some confidence, I ran your Github actions in my fork, and compiled
1.5.1
release with this patch. You can grab the binaries and test for yourself!https://github.com/maximbaz/swc/releases/tag/v1.5.1-1
I didn't touch Android as I don't have enough knowledge to confirm that this is needed for that platform or how to verify it.
Related issue (if exists):
Fixes #5967
I originally came to report this, because I wanted to fix Next.js swc plugin, which suffers from exactly the same issue and requires exactly the same fix. I can confirm that Next.js can finally be used on my aarch64 Linux machine with this patch.