diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-06-18 10:03:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-18 10:03:24 +0900 |
| commit | d9559f45143ee5c089e98b2de96676643632dce0 (patch) | |
| tree | 8064adc1c36fb8338237b1bb2b21dca0b0727c76 /compiler/rustc_codegen_ssa | |
| parent | d09a568b9498687f2c29a9823520ff7fcdc7910d (diff) | |
| parent | a2ecf5b2f73c715c67864a33d4cf5fe1ced68672 (diff) | |
Rollup merge of #98150 - hoodmane:emscripten-g4, r=sbc100
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`
Diffstat (limited to 'compiler/rustc_codegen_ssa')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/linker.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/linker.rs b/compiler/rustc_codegen_ssa/src/back/linker.rs index a24e4347839..ee097b5f051 100644 --- a/compiler/rustc_codegen_ssa/src/back/linker.rs +++ b/compiler/rustc_codegen_ssa/src/back/linker.rs @@ -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", }); } |
