Don't print unsupported split-debuginfo modes with -Zunstable-options
This commit is contained in:
parent
caeea3f0a2
commit
fda3c9f4a8
1 changed files with 1 additions and 3 deletions
|
@ -764,9 +764,7 @@ fn print_crate_info(
|
||||||
use rustc_target::spec::SplitDebuginfo::{Off, Packed, Unpacked};
|
use rustc_target::spec::SplitDebuginfo::{Off, Packed, Unpacked};
|
||||||
|
|
||||||
for split in &[Off, Packed, Unpacked] {
|
for split in &[Off, Packed, Unpacked] {
|
||||||
let stable = sess.target.options.supported_split_debuginfo.contains(split);
|
if sess.target.options.supported_split_debuginfo.contains(split) {
|
||||||
let unstable_ok = sess.unstable_options();
|
|
||||||
if stable || unstable_ok {
|
|
||||||
safe_println!("{split}");
|
safe_println!("{split}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue