Skip to content

Commit b7f4ece

Browse files
Auto merge of #112049 - Kobzol:pgo-omit-benchmarks, r=<try>
[do not merge] CI experiments try-job: dist-x86_64-linux
2 parents 0d0f4ea + d20be04 commit b7f4ece

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,11 @@ fn select_debuginfo(matches: &getopts::Matches, cg: &CodegenOptions) -> DebugInf
24172417
if let Some("debuginfo") = s.split('=').next() { Some(i) } else { None }
24182418
})
24192419
.max();
2420-
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
2420+
let debuginfo = if max_g > max_c { DebugInfo::Full } else { cg.debuginfo };
2421+
match debuginfo {
2422+
DebugInfo::None => DebugInfo::None,
2423+
_ => DebugInfo::LineTablesOnly,
2424+
}
24212425
}
24222426

24232427
fn parse_assert_incr_state(

0 commit comments

Comments
 (0)