Skip to content

Commit 77e39b0

Browse files
committed
Log linker stderr and stdout.
1 parent 03fd90b commit 77e39b0

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
@@ -1305,6 +1305,8 @@ fn link_natively(sess: &Session, trans: &CrateTranslation, dylib: bool,
13051305
sess.note(str::from_utf8(output.as_slice()).unwrap());
13061306
sess.abort_if_errors();
13071307
}
1308+
debug!("linker stderr:\n{}", str::from_utf8_owned(prog.error).unwrap());
1309+
debug!("linker stdout:\n{}", str::from_utf8_owned(prog.output).unwrap());
13081310
},
13091311
Err(e) => {
13101312
sess.err(format!("could not exec the linker `{}`: {}",

0 commit comments

Comments
 (0)