mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 01:25:15 +00:00
tests: check wasm compiler_builtins object architecture See rust-lang/rust#132802 This adds a run-make test for the wasm sysroot regression fixed in rust-lang/rust#137457 The test checks that the `.o` members in the prebuilt `libcompiler_builtins` rlib for `wasm32-wasip1` are wasm objects rather than host ELF objects. Before that fix, bootstrap could use the host C compiler for compiler-rt fallbacks on wasm targets and end up embedding host objects into the wasm sysroot. I used `wasm32-wasip1` because that's the wasm target covered by the existing `tests/run-make` CI setup, and the test asserts that it actually saw `.o` members in the archive. Closes: https://github.com/rust-lang/rust/issues/132802 r? @tgross35