Skip to content

Commit a2ecf5b

Browse files
committed
Replace -g4 with -gsource-map
1 parent ca98305 commit a2ecf5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1134,8 +1134,8 @@ impl<'a> Linker for EmLinker<'a> {
11341134
// Preserve names or generate source maps depending on debug info
11351135
self.cmd.arg(match self.sess.opts.debuginfo {
11361136
DebugInfo::None => "-g0",
1137-
DebugInfo::Limited => "-g3",
1138-
DebugInfo::Full => "-g4",
1137+
DebugInfo::Limited => "--profiling-funcs",
1138+
DebugInfo::Full => "-g",
11391139
});
11401140
}
11411141

0 commit comments

Comments
 (0)