Skip to content

native rt slot - #2830

Merged
ehartford merged 1 commit into
run-scratch-in-tempfrom
native-rt-slot
Oct 29, 2026
Merged

ehartford merged 1 commit into
run-scratch-in-tempfrom
native-rt-slot

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLI • Give Feedback 💬

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.
@ehartford
ehartford added this pull request to stack #2831 October 29, 2026 21:38
@ehartford

Copy link
Copy Markdown
Contributor Author

Seed-driven battery GREEN on the stack top 9a2c179 (with run tools/battery.w, darwin-aarch64): tools/verdict.w out/battery/battery.log → rc=0 green. The Windows battery (win10) on the same commit is the evidence for runtime-generation-regression; running.

@ehartford

Copy link
Copy Markdown
Contributor Author

Windows battery (win10, windows-x86_64, pinned seed driving) on 9a2c179: tools/verdict.w out/battery/battery.log → rc=0 green, runtime-generation-regression included. Both platforms green on the stack top.

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.

1 participant