Skip to content

Commit 8185e72

Browse files
committed
ci: Ignore internal errors in snapshot compilers
1 parent 1f1bb78 commit 8185e72

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

ci/ci.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,21 @@ 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:-undefined}" in
91+
*snapshot*)
92+
# Ignore internal compiler errors in gcc-snapshot and clang-snapshot
93+
grep -e "internal compiler error:" -e "PLEASE submit a bug report" make.log
94+
return $?;
95+
;;
96+
*)
97+
return 1;
98+
;;
99+
esac
100+
fi
87101

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

0 commit comments

Comments
 (0)