--enable-simd
feature is present in wasm32-unknown-unknown
target, not enabled by target-feature=+simd128
#133290
Labels
A-target-feature
Area: Enabling/disabling target features like AVX, Neon, etc.
C-discussion
Category: Discussion or questions that doesn't represent real issues.
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
I tried this code:
https://github.com/dj8yfo/abstract-dao/tree/056f74e16fbaba84b75c49522c1176c477a975d1
git clone https://github.com/dj8yfo/abstract-dao.git cd abstract-dao/ git checkout origin/1.82_plus_simd128_bug cargo build --target wasm32-unknown-unknown --release
I expected to see this happen:
❯ : wasm-opt --print-features target/wasm32-unknown-unknown/release/near_abstract_dao.wasm --enable-mutable-globals --enable-sign-ext --enable-reference-types --enable-multivalue
In fact, this behaves as expected on previous version of
Cargo.lock
in https://github.com/dj8yfo/abstract-dao/tree/fe9d16797bf582f0ea24380c1e4ad6bdb8c97283 ,before running
cargo update
Instead, this happened:
Additional
--enable-simd
feature is present in output wasm,which wasn't enabled with
RUSTFLAGS = "-C target-feature=+simd128"
❯ : wasm-opt --print-features target/wasm32-unknown-unknown/release/near_abstract_dao.wasm --enable-mutable-globals --enable-simd --enable-sign-ext --enable-reference-types --enable-multivalue
Meta
Present on
rustc 1.84.0-nightly (3fee0f12e 2024-11-20)
and
rustc 1.83.0-beta.6 (4ff8ff0ec 2024-11-16)
and on
rustc 1.81.0 (eeb90cda1 2024-09-04)
if moving backwardsrustc --version --verbose
:this is also reproduced on
aarch64-apple-darwin
, more discussion/context is present in nearuaguild/abstract-dao#9Backtrace
The text was updated successfully, but these errors were encountered: