Skip to content

Commit 833277e

Browse files
committed
auto merge of #16694 : vadimcn/rust/debug-linker, r=alexcrichton
Shows linker spew even when linking succeeds. This is occasionally useful in order to see verbose linker output.
2 parents 6d9b219 + 77e39b0 commit 833277e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/back/link.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,8 @@ fn link_natively(sess: &Session, trans: &CrateTranslation, dylib: bool,
13121312
sess.note(str::from_utf8(output.as_slice()).unwrap());
13131313
sess.abort_if_errors();
13141314
}
1315+
debug!("linker stderr:\n{}", str::from_utf8_owned(prog.error).unwrap());
1316+
debug!("linker stdout:\n{}", str::from_utf8_owned(prog.output).unwrap());
13151317
},
13161318
Err(e) => {
13171319
sess.err(format!("could not exec the linker `{}`: {}",

0 commit comments

Comments
 (0)