wasm64: std fails to build with target-feature=+atomics
#126778
Labels
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-bug
Category: This is a bug.
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
I tried to build an example project for
wasm64-unknown-unknown
withtarget-feature=+atomics
, but thestd
failed to build due torust/library/std/src/sys/pal/wasm/atomics/futex.rs
Line 1 in 7a08f84
rust/library/std/src/sys/pal/wasm/atomics/thread.rs
Line 22 in 7a08f84
wasm32
arch.I could get
std
to build by adding#![feature(simd_wasm64)]
to https://github.com/rust-lang/rust/blob/master/library/std/src/lib.rs, and a fewcfg
checks to import the correct module.I could work on a PR if that's the right approach.
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: