Add --print=split-debuginfo
This option prints all supported values for -Csplit-debuginfo=.., i.e. only stable ones on stable/beta and all of them on nightly/dev.
This commit is contained in:
parent
391ba78ab4
commit
4c3cad0620
3 changed files with 14 additions and 1 deletions
|
@ -736,6 +736,17 @@ fn print_crate_info(
|
|||
// Any output here interferes with Cargo's parsing of other printed output
|
||||
NativeStaticLibs => {}
|
||||
LinkArgs => {}
|
||||
SplitDebuginfo => {
|
||||
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 {
|
||||
println!("{}", split);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Compilation::Stop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue