Skip to content

Commit f8ab528

Browse files
committed
Force debuginfo to disabled
1 parent 0d0f4ea commit f8ab528

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

compiler/rustc_session/src/config.rs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,17 +2407,8 @@ fn parse_opt_level(
24072407
}
24082408
}
24092409

2410-
fn select_debuginfo(matches: &getopts::Matches, cg: &CodegenOptions) -> DebugInfo {
2411-
let max_g = matches.opt_positions("g").into_iter().max();
2412-
let max_c = matches
2413-
.opt_strs_pos("C")
2414-
.into_iter()
2415-
.flat_map(|(i, s)| {
2416-
// NB: This can match a string without `=`.
2417-
if let Some("debuginfo") = s.split('=').next() { Some(i) } else { None }
2418-
})
2419-
.max();
2420-
if max_g > max_c { DebugInfo::Full } else { cg.debuginfo }
2410+
fn select_debuginfo(_matches: &getopts::Matches, _cg: &CodegenOptions) -> DebugInfo {
2411+
DebugInfo::None
24212412
}
24222413

24232414
fn parse_assert_incr_state(

0 commit comments

Comments
 (0)