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.
This commit is contained in:
commit
833277e2d2
@ -1312,6 +1312,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 `{}`: {}",
|
||||
|
Loading…
Reference in New Issue
Block a user