From 335f9fb31e2c9a98b8365b0ee7b14e73570a8339 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 22 Sep 2023 10:50:38 +0200 Subject: [PATCH] ci: Build crosstests with -Wno-array-bounds. --- gitlab/build-crosstest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitlab/build-crosstest b/gitlab/build-crosstest index 99997ffa..d5f6ae00 100755 --- a/gitlab/build-crosstest +++ b/gitlab/build-crosstest @@ -7,11 +7,14 @@ COMMIT=$(git rev-parse --short HEAD) set -Eeuxo pipefail +# Building with -Wno-array-bounds because MinGW headers currently emit +# a lot of those + ./autogen.sh rm -fr build mkdir build cd build -../configure && make -j$(nproc) crosstest || touch ../pipeline_failed +../configure CROSSCC32="i686-w64-mingw32-gcc -Wno-array-bounds" CROSSCC64="x86_64-w64-mingw32-gcc -Wno-array-bounds" && make -j$(nproc) crosstest || touch ../pipeline_failed mkdir -p ../artifacts/$COMMIT rsync -Rr tests/*.exe ../artifacts/$COMMIT