Stabilize -Z print-link-args as --print link-args

We have stable options for adding linker arguments; we should have a
stable option to help debug linker arguments.
This commit is contained in:
Josh Triplett 2021-12-06 14:09:24 -08:00
parent 0fb1c371d4
commit cd626fec2b
12 changed files with 18 additions and 17 deletions

View file

@ -722,7 +722,7 @@ fn link_natively<'a, B: ArchiveBuilder<'a>>(
cmd.env_remove(k);
}
if sess.opts.debugging_opts.print_link_args {
if sess.opts.prints.contains(&PrintRequest::LinkArgs) {
println!("{:?}", &cmd);
}