From a2ecf5b2f73c715c67864a33d4cf5fe1ced68672 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 15 Jun 2022 15:08:38 -0700 Subject: [PATCH] Replace -g4 with -gsource-map --- compiler/rustc_codegen_ssa/src/back/linker.rs | 4 ++-- 1 file 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 a24e4347839c7..ee097b5f05199 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", }); }