If the linker segfaulted, don't emit it as a warning.

Prevent spuriously breaking UI tests.
See https://github.com/rust-lang/rust/pull/45489#issuecomment-340134944.
This commit is contained in:
kennytm 2017-11-05 01:47:02 +08:00
parent 33400fbbcd
commit d517668a08
No known key found for this signature in database
GPG Key ID: FEF6C8051D0E013C
1 changed files with 6 additions and 5 deletions

View File

@ -671,11 +671,12 @@ fn link_natively(sess: &Session,
break
}
sess.struct_warn("looks like the linker segfaulted when we tried to \
call it, automatically retrying again")
.note(&format!("{:?}", cmd))
.note(&out)
.emit();
warn!(
"looks like the linker segfaulted when we tried to call it, \
automatically retrying again. cmd = {:?}, out = {}.",
cmd,
out,
);
}
match prog {