Skip to content

Commit c891c5c

Browse files
Merge #1437: ci: Ignore internal errors of snapshot compilers
8185e72 ci: Ignore internal errors in snapshot compilers (Hennadii Stepanov) Pull request description: It was discussed on today's IRC meeting. ACKs for top commit: real-or-random: ACK 8185e72 Tree-SHA512: 0f41ca8303bd3d6efefcd3a544c7bd7dfcf464c57c779c876da4a77cacd262e6c963449d493fdf5a641b0d10b655c8c67fe8a147145b6533328d7bf5344313e1
2 parents 40f50d0 + 8185e72 commit c891c5c

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)