about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src/back
diff options
context:
space:
mode:
authorAlan Egerton <eggyal@gmail.com>2024-07-09 10:40:26 +0100
committerAlan Egerton <eggyal@gmail.com>2024-07-09 10:40:26 +0100
commit5e2cc5793a9cf7cdbb4758ce18470dbdefd8491c (patch)
tree714204b8e0d83d4179cdc32d5249712dac764b75 /compiler/rustc_codegen_ssa/src/back
parent5be2ec7245de6e8015a0daedf24d20e3e5bf2062 (diff)
downloadrust-5e2cc5793a9cf7cdbb4758ce18470dbdefd8491c.tar.gz
rust-5e2cc5793a9cf7cdbb4758ce18470dbdefd8491c.zip
Terminate `--print link-args` output with newline
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 1f627353d54..8e07d128dbd 100644
--- a/compiler/rustc_codegen_ssa/src/back/link.rs
+++ b/compiler/rustc_codegen_ssa/src/back/link.rs
@@ -750,7 +750,7 @@ fn link_natively(
 
     for print in &sess.opts.prints {
         if print.kind == PrintKind::LinkArgs {
-            let content = format!("{cmd:?}");
+            let content = format!("{cmd:?}\n");
             print.out.overwrite(&content, sess);
         }
     }