Skip to content

Commit

Permalink
Unrolled build for rust-lang#127512
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#127512 - eggyal:newline-terminate-print-linkargs, r=compiler-errors

Terminate `--print link-args` output with newline

Fixes rust-lang#127507
  • Loading branch information
rust-timer authored Jul 17, 2024
2 parents 1a6e777 + f96f68f commit f01ddf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
1 change: 1 addition & 0 deletions tests/run-make/link-arg/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ fn main() {
.run_unchecked();
out.assert_stdout_contains("lfoo");
out.assert_stdout_contains("lbar");
assert!(out.stdout_utf8().ends_with('\n'));
}

0 comments on commit f01ddf0

Please sign in to comment.