mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-07 20:43:03 +00:00
Don't print unsupported split-debuginfo modes with -Zunstable-options
This commit is contained in:
parent
caeea3f0a2
commit
fda3c9f4a8
@ -764,9 +764,7 @@ fn print_crate_info(
|
||||
use rustc_target::spec::SplitDebuginfo::{Off, Packed, Unpacked};
|
||||
|
||||
for split in &[Off, Packed, Unpacked] {
|
||||
let stable = sess.target.options.supported_split_debuginfo.contains(split);
|
||||
let unstable_ok = sess.unstable_options();
|
||||
if stable || unstable_ok {
|
||||
if sess.target.options.supported_split_debuginfo.contains(split) {
|
||||
safe_println!("{split}");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user