Skip to content

Commit 3d791d2

Browse files
committed
In additional to segfault, retry the linker on bus error as well.
1 parent cd57b76 commit 3d791d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_trans/back/link.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,9 @@ fn link_natively(sess: &Session,
644644
let mut out = output.stderr.clone();
645645
out.extend(&output.stdout);
646646
let out = String::from_utf8_lossy(&out);
647-
let msg = "clang: error: unable to execute command: \
648-
Segmentation fault: 11";
649-
if !out.contains(msg) {
647+
let msg_segv = "clang: error: unable to execute command: Segmentation fault: 11";
648+
let msg_bus = "clang: error: unable to execute command: Bus error: 10";
649+
if !(out.contains(msg_segv) || out.contains(msg_bus)) {
650650
break
651651
}
652652

0 commit comments

Comments
 (0)