about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2021-12-06 14:09:24 -0800
committerJosh Triplett <josh@joshtriplett.org>2022-01-09 13:22:50 -0800
commitcd626fec2bcfa6b78d34a1ae023943c8a15a6641 (patch)
treec7067f69adca54d329ae71926a9f3f7b4354eb8b /compiler/rustc_codegen_ssa/src/back
parent0fb1c371d4a14f9ce7a721d8aea683a6e6774f6c (diff)
downloadrust-cd626fec2bcfa6b78d34a1ae023943c8a15a6641.tar.gz
rust-cd626fec2bcfa6b78d34a1ae023943c8a15a6641.zip
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.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
-rw-r--r--compiler/rustc_codegen_ssa/src/back/link.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/link.rs b/compiler/rustc_codegen_ssa/src/back/link.rs
index 638b2a7b5a9..53975476709 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -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);
     }