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
thread 'rustc' panicked at 'src/librustc_codegen_ssa/back/linker.rs:893: building dynamic library is unsupported on Emscripten', src/librustc_middle/util/bug.rs:37:26
This behavior makes it impossible to support WASM and native (not WASM) dynamic libraries in the same crate.
It would be helpful if Cargo knew that wasm32-unknown-emscripten doesn't support cdylib, and didn't try to build it.
Note that unsupported cdylib breaks builds that don't use the crate as a dynamic library, because Cargo seems to unconditionally build cdylib even when the crate is used as a regular dependency linked as .rlib.
The text was updated successfully, but these errors were encountered:
Given a crate with:
invokes:
which causes:
This behavior makes it impossible to support WASM and native (not WASM) dynamic libraries in the same crate.
It would be helpful if Cargo knew that
wasm32-unknown-emscripten
doesn't supportcdylib
, and didn't try to build it.Note that unsupported
cdylib
breaks builds that don't use the crate as a dynamic library, because Cargo seems to unconditionally buildcdylib
even when the crate is used as a regular dependency linked as.rlib
.The text was updated successfully, but these errors were encountered: