rollup merge of #18239 : msiemens/fix-ice-rename-failed
This commit is contained in:
commit
bb70ce6804
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user