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 may just be doing something wrong, but it appears that turning on LTO gives wasm-bindgen a hard time resolving imports. Although I can compile, use wasm-bindgen, wasm-gc, etc. without any warnings or errors, I end up at runtime with messages like Module not found: Error: Can't resolve 'env' with the two offending lines in the resulting .wasm being:
Thanks for the report! I think this is due to rust-lang/libm#129 which is being fixed in upstream rust-lang/rust#52724. Unfortunately there's no great workaround for now except lto = false, but it should hopefully be fixed soon!
I may just be doing something wrong, but it appears that turning on LTO gives
wasm-bindgen
a hard time resolving imports. Although I can compile, usewasm-bindgen
,wasm-gc
, etc. without any warnings or errors, I end up at runtime with messages likeModule not found: Error: Can't resolve 'env'
with the two offending lines in the resulting .wasm being:Setting
lto = false
in Cargo.toml fixes this. However, previous versions (<=0.2.13
) seemed to work fine with LTO, so I'm not sure what's up.The text was updated successfully, but these errors were encountered: