emscripten support broken by cargo file layout changes #4087
Labels
A-layout
Area: target output directory layout, naming, and organization
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-build
S-triage
Status: This issue is waiting on initial triage.
Moved over from: rust-lang/rust#38454
Looks like the compiler uses hashes as postfixes for the deps now. This messes with emscripten though, as the final "binaries" don't get copied out of the deps folder correctly anymore. Also the original names get baked into the JS files, so even if copied out correctly, they can't find each other anymore.
To clarify, the final JS binary is located in the
target/asmjs-unknown-emscripten/release/
folder asaoc.js
like intended. However there's noaoc.js.mem
file like there used to be. That's because the deps are calledaoc-66434e595ec0b4e8
now, so the compiler spits out the binaries with that name. However rustc only copies out theaoc-66434e595ec0b4e8.js
asaoc.js
, but not the mem file. But even if it copied out the mem file, it wouldn't be able to rename it, because theaoc.js
looks specifically for the original name.The text was updated successfully, but these errors were encountered: