'Referencing function in another module` error when compiling for target wasm32-unknown-emscripten (debug mode) #68637
Open
Description
I'm trying to compile a Rust project that depends on the byte-slice-cast
crate, but I'm encountering a strange error. The same error pops up if having block-padding
as a dependency. You can find all the details in this issue: sdroege/byte-slice-cast#13. As mentioned there, this only happens when compiling in debug mode, while release builds succeed.
Some info about the environment:
rustc 1.40.0 (73528e339 2019-12-16)
emcc (Emscripten gcc/clang-like replacement) 1.39.1 ((unknown revision))
Metadata
Assignees
Labels
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Category: This is a bug.Target: 50% off wasm32-unknown-musl. the savings come out of stdio.h, but hey, you get SDL!Target: WASM (WebAssembly), http://webassembly.org/Relevant to the compiler team, which will review and decide on the PR/issue.