rollup merge of #18239 : msiemens/fix-ice-rename-failed
This commit is contained in:
commit
bb70ce6804
1 changed files with 7 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue