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
On Ubuntu 22.04, if I have the binaryen package installed, wasm-pack seems to use it. This is a problem because the Ubuntu version (105) of binaryen has a broken wasm-opt (see this issue), that breaks compilation of some Rust code, especially with new Rust 1.82 that has enabled multivalues and reference-types.
🤔 Expected Behavior
I expect that either:
wasm-pack consistently uses its own wasm-opt, which is comes from a recent version of binaryen.
wasm-pack warns that my system-wide wasm-opt is too old and will miscompile my code.
Or, at least, that there is an option to force using the built-in version of wasm-opt, regardless of what is installed on the system.
👟 Steps to reproduce
I am calling wasm-pack through the Webpack wasm-pack-plugin. The miscompilation happens when compiling for production mode.
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 1.13.1
rustc version: 1.82.0
Ubuntu version: 22.04.5
@wasm-tool/wasm-pack-plugin version: 1.7.0
The text was updated successfully, but these errors were encountered:
🐛 Bug description
On Ubuntu 22.04, if I have the
binaryen
package installed,wasm-pack
seems to use it. This is a problem because the Ubuntu version (105) ofbinaryen
has a brokenwasm-opt
(see this issue), that breaks compilation of some Rust code, especially with new Rust 1.82 that has enabled multivalues and reference-types.🤔 Expected Behavior
I expect that either:
wasm-pack
consistently uses its ownwasm-opt
, which is comes from a recent version of binaryen.wasm-pack
warns that my system-widewasm-opt
is too old and will miscompile my code.Or, at least, that there is an option to force using the built-in version of
wasm-opt
, regardless of what is installed on the system.👟 Steps to reproduce
I am calling
wasm-pack
through the Webpackwasm-pack-plugin
. The miscompilation happens when compiling for production mode.🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: 1.13.1
rustc version: 1.82.0
Ubuntu version: 22.04.5
@wasm-tool/wasm-pack-plugin version: 1.7.0
The text was updated successfully, but these errors were encountered: