Skip to content

Commit 5a8db10

Browse files
committed
ci: Ignore internal errors of snapshot compilers
1 parent 1f1bb78 commit 5a8db10

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

ci/ci.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,20 @@ esac
8383
--host="$HOST" $EXTRAFLAGS
8484

8585
# We have set "-j<n>" in MAKEFLAGS.
86-
make
86+
build_exit_code=0
87+
make > make.log 2>&1 || build_exit_code=$?
88+
cat make.log
89+
if [ $build_exit_code -ne 0 ]; then
90+
case $CC in
91+
*snapshot*)
92+
grep -e "internal compiler error:" -e "PLEASE submit a bug report" make.log
93+
return $?;
94+
;;
95+
*)
96+
return 1;
97+
;;
98+
esac
99+
fi
87100

88101
# Print information about binaries so that we can see that the architecture is correct
89102
file *tests* || true

0 commit comments

Comments
 (0)