Repository navigation
swiftPackages.stdlib: disable LTO on aarch64-linux - #583385
Merged
Merged
Conversation
reckenrode
force-pushed
the
push-mssmyvzpvzmp
branch
from
November 5, 2026 00:49
d1484cb to
4c37b35
Compare
5 of 13 tasks
Member
|
mdaniels5757
approved these changes
Nov 5, 2026
mdaniels5757
left a comment
Member
There was a problem hiding this comment.
Diff LGTM otherwise (but I know nothing about Swift)
| enableLTO = | ||
| # Swift 6.2 is used as a bootstrap compiler. Disable LTO for its stdlib to improve build time. | ||
| lib.versions.majorMinor swift_release != "6.2" | ||
| # Enable LTO in the stdlib causes `swiftc` to crash in the `MandatoryAllocBoxToStack` on aarch64-linux |
Member
There was a problem hiding this comment.
Suggested change
| # Enable LTO in the stdlib causes `swiftc` to crash in the `MandatoryAllocBoxToStack` on aarch64-linux | |
| # Enabling LTO in the stdlib causes `swiftc` to crash in the `MandatoryAllocBoxToStack` on aarch64-linux |
Building the Swift stdlib with LTO results in compiler crashes on aarch64-linux. e.g., https://hydra.nixos.org/build/351734944
reckenrode
force-pushed
the
push-mssmyvzpvzmp
branch
from
November 5, 2026 04:25
4c37b35 to
de0258e
Compare
reckenrode
enabled auto-merge
November 5, 2026 04:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Building the Swift stdlib with LTO results in compiler crashes on aarch64-linux. e.g., https://hydra.nixos.org/build/351734944
Fixes Swift compiler crash on staging-next #580394.
Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.