rollup merge of #18239 : msiemens/fix-ice-rename-failed

This commit is contained in:
Alex Crichton 2014-10-27 09:06:48 -07:00
commit bb70ce6804

View File

@ -714,7 +714,13 @@ pub fn run_passes(sess: &Session,
.stdout(::std::io::process::InheritFd(1))
.stderr(::std::io::process::InheritFd(2));
match cmd.status() {
Ok(_) => {},
Ok(status) => {
if !status.success() {
sess.err(format!("linking of {} with `{}` failed",
output_path.display(), cmd).as_slice());
sess.abort_if_errors();
}
},
Err(e) => {
sess.err(format!("could not exec the linker `{}`: {}",
pname,