Open and answer this issue on GitHub.
compiler, decision · opened 2026-11-21 · updated 2026-11-22 · 0 comments
Part of #468
ADR-321 D3: when cross-compiling, the dependencies the build-time bundle reaches are built for the host as well, since the build-time program runs on the machine that builds. #468’s comment of 2026-10-08 records that the bundle and the run are built for the host whatever --target says, which is what this asks, but no test shows it: --target wasm32-unknown, the target #468 named for the test, is refused before anything is built (std needs mmap and threads there), and the machine that checked had no other Rust target installed. What is left is a question of what counts as shown, not code.
Open question: how is step 8 shown done?
comptime that calls std under --target for it.tests/build-time built with --target <the installed target> whose comptime calls std gives the same value as the host build; for (a), nothing.The decision is recorded in this issue, and under (b) the cross-target test passes; the report gives a Found: line per finding.
Split from #468 by Claude Code