Skip to content
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

Compile rustc+LLVM to wasm #6

Merged
Prev Previous commit
Next Next commit
Disable linker optimizations for wasm
This is really slow when producing a 156MB rustc.wasm output.
bjorn3 committed Sep 24, 2024
commit b05a1af5d86b836c155086ecbb349950f71c97ac
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
@@ -657,7 +657,7 @@ impl<'a> Linker for GccLinker<'a> {
if self.sess.opts.optimize == config::OptLevel::Default
|| self.sess.opts.optimize == config::OptLevel::Aggressive
{
self.link_arg("-O1");
//self.link_arg("-O1");
}
}