Log linker stderr and stdout.

This commit is contained in:
Vadim Chugunov 2014-08-23 13:19:29 -07:00
parent 03fd90be45
commit 77e39b0560
1 changed files with 2 additions and 0 deletions

View File

@ -1305,6 +1305,8 @@ fn link_natively(sess: &Session, trans: &CrateTranslation, dylib: bool,
sess.note(str::from_utf8(output.as_slice()).unwrap());
sess.abort_if_errors();
}
debug!("linker stderr:\n{}", str::from_utf8_owned(prog.error).unwrap());
debug!("linker stdout:\n{}", str::from_utf8_owned(prog.output).unwrap());
},
Err(e) => {
sess.err(format!("could not exec the linker `{}`: {}",