Skip to content

Commit

Permalink
Rollup merge of #98150 - hoodmane:emscripten-g4, r=sbc100
Browse files Browse the repository at this point in the history
Emscripten target: replace -g4 with -g, and -g3 with --profiling-funcs

Emscripten prints the following warning:
```
emcc: warning: please replace -g4 with -gsource-map [-Wdeprecated]
```
`@sbc100`
  • Loading branch information
JohnTitor committed Jun 18, 2022
2 parents d09a568 + a2ecf5b commit d9559f4
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 d9559f4

Please sign in to comment.