-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove --memory-init-file flag when linking with Emscripten #98146
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Does it apply to this target - https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/asmjs_unknown_emscripten.rs ? |
Yeah exactly. I have never used the asmjs target so I don't know whether it's a good idea in that case. Compiling for wasm, it is harmless it just does nothing. |
It seems like we shouldn't do this, then, at least not on the grounds of it being useless for wasm, since presumably it is being used for the asm.js generation in some way. |
How about let's move it to the asmjs target. It's not clear why this belongs in the linker |
This comment has been minimized.
This comment has been minimized.
r=me after squashing commits. |
1aa15eb
to
3fb6d45
Compare
@bors r+ rollup |
📌 Commit 3fb6d45 has been approved by |
…=petrochenkov Remove --memory-init-file flag when linking with Emscripten This flag does nothing. It only applies when generating asmjs JavaScript. `@sbc100`
Rollup of 5 pull requests Successful merges: - rust-lang#98105 (rustdoc: remove tuple link on round braces) - rust-lang#98136 (Rename `impl_constness` to `constness`) - rust-lang#98146 (Remove --memory-init-file flag when linking with Emscripten) - rust-lang#98219 (Skip late bound regions in GATSubstCollector) - rust-lang#98233 (Remove accidental uses of `&A: Allocator`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This flag does nothing. It only applies when generating asmjs JavaScript.
@sbc100