Repository navigation
native rt slot - #2830
Merged
Merged
native rt slot#2830
Conversation
A host that is also a cross tag (windows_x86_64, linux_x86_64) embeds its runtime twice: the native `rt` slot, compiled for the host, and `rt@<tag>`, compiled for the named triple. Both passed embedded_bundle_for_this_target for a native build and the bytes differ, so every reader took whichever slot came first, each guarding the doubling its own way (the link joined the runtime once, registration registered it once, the generation check and the manifest did neither). On win10 runtime-generation-regression refused this compiler's own runtime: out/lib/rt.o is the native bundle (1305063 bytes, the same in out/bootstrap/lib), while the check compared it with the windows_x86_64 cross bundle (1305107 bytes, out/lib/cross/windows_x86_64/ rt.o), "rt.o differs from the embedded rt slot (1305063 bytes on disk, 1305107 embedded)". The same-bytes-root copy was byte-exact (1305063). One rule now, in embedded_bundle_for_this_target: a native build reads the native slots and a cross build its tag's. The link's and the registration's twin guards are gone; the link's empty-slot fallback now sits behind the target check it skipped.
Contributor
Author
|
Seed-driven battery GREEN on the stack top 9a2c179 ( |
Contributor
Author
|
Windows battery (win10, windows-x86_64, pinned seed driving) on 9a2c179: |
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.
Stack created with GitHub Stacks CLI • Give Feedback 💬