Skip to content

Commit

Permalink
Replace -g4 with -gsource-map
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jun 17, 2022
1 parent ca98305 commit a2ecf5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1134,8 +1134,8 @@ impl<'a> Linker for EmLinker<'a> {
// Preserve names or generate source maps depending on debug info
self.cmd.arg(match self.sess.opts.debuginfo {
DebugInfo::None => "-g0",
DebugInfo::Limited => "-g3",
DebugInfo::Full => "-g4",
DebugInfo::Limited => "--profiling-funcs",
DebugInfo::Full => "-g",
});
}

Expand Down

0 comments on commit a2ecf5b

Please sign in to comment.