Official binaries for wasm32-unknown-unknown
(and potentially other WASM platforms?) contain code for the wrong architecture
#132802
Labels
C-bug
Category: This is a bug.
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
The
compiler-builtins
crate compiles C code for WASM platforms since rust-lang/compiler-builtins#566. This works if the C compiler is Clang, as it passes the appropriate-target
. However, in a GCC build environment this means that thecc
crate will end up silently compiling code for the wrong architecture entirely. This means that, for example, thecompiler-builtins
shipping forwasm32-unknown-unknown
via Rustup contains object files like the following:I suppose that the build for these needs to arrange for Clang to be present, or perhaps even specified explicitly in the
target.*.{cc,cxx,linker}
settings.(Was redirected here from rust-lang/compiler-builtins#732.)
The text was updated successfully, but these errors were encountered: