diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2021-12-06 14:09:24 -0800 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2022-01-09 13:22:50 -0800 |
| commit | cd626fec2bcfa6b78d34a1ae023943c8a15a6641 (patch) | |
| tree | c7067f69adca54d329ae71926a9f3f7b4354eb8b /compiler/rustc_driver/src | |
| parent | 0fb1c371d4a14f9ce7a721d8aea683a6e6774f6c (diff) | |
| download | rust-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_driver/src')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index 6ff94341142..19f4c22d4bb 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -652,9 +652,9 @@ impl RustcDefaultCalls { temps_dir: &Option<PathBuf>, ) -> Compilation { use rustc_session::config::PrintRequest::*; - // PrintRequest::NativeStaticLibs is special - printed during linking + // NativeStaticLibs and LinkArgs are special - printed during linking // (empty iterator returns true) - if sess.opts.prints.iter().all(|&p| p == PrintRequest::NativeStaticLibs) { + if sess.opts.prints.iter().all(|&p| p == NativeStaticLibs || p == LinkArgs) { return Compilation::Continue; } @@ -745,7 +745,8 @@ impl RustcDefaultCalls { codegen_backend.print(*req, sess); } // Any output here interferes with Cargo's parsing of other printed output - PrintRequest::NativeStaticLibs => {} + NativeStaticLibs => {} + LinkArgs => {} } } Compilation::Stop |
