You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to enable SIMD instructions in compiled wasm binary (it is available on most web browsers which supports wasm since 2023) via -C target-feature=+simd128
But I can not find how to enable it in wasm-opt which is calling from trunk. It is be very useful to provide additional options to wasm-opt (such as --enable-simd) from config or env variable.
Without this option trunk build --release fails with:
[wasm-validator error in function 0] unexpected false: all used features should be allowed, on
(f32x4.splat
(f32.div
(local.get $45)
(local.get $46)
)
)
[wasm-validator error in function 0] unexpected false: SIMD operations require SIMD [--enable-simd], on
(v128.load offset=392 align=8
(local.get $7)
)
...
The text was updated successfully, but these errors were encountered:
I want to enable SIMD instructions in compiled wasm binary (it is available on most web browsers which supports wasm since 2023) via
-C target-feature=+simd128
But I can not find how to enable it in
wasm-opt
which is calling fromtrunk
. It is be very useful to provide additional options towasm-opt
(such as--enable-simd
) from config or env variable.Without this option
trunk build --release
fails with:The text was updated successfully, but these errors were encountered: