about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2022-06-15 15:08:38 -0700
committerHood Chatham <roberthoodchatham@gmail.com>2022-06-17 10:52:10 -0700
commita2ecf5b2f73c715c67864a33d4cf5fe1ced68672 (patch)
tree2bfc6083513a2434b86708355e5f4dde580a7400 /compiler/rustc_codegen_ssa/src/back
parentca983054e19afd74d63c3ed37997f3bf30fe85d0 (diff)
downloadrust-a2ecf5b2f73c715c67864a33d4cf5fe1ced68672.tar.gz
rust-a2ecf5b2f73c715c67864a33d4cf5fe1ced68672.zip
Replace -g4 with -gsource-map
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/linker.rs4
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",
         });
     }