Skip to content

Commit

Permalink
Disable linker optimizations for wasm
Browse files Browse the repository at this point in the history
This is really slow when producing a 156MB rustc.wasm output.
  • Loading branch information
bjorn3 committed Sep 24, 2024
1 parent ee85060 commit b05a1af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit b05a1af

Please sign in to comment.