1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-24 21:33:51 +03:00

gitlab-ci: Allow cast-align warnings from clang

This commit is contained in:
Nick Wellnhofer 2022-09-09 13:51:58 +02:00
parent a9669679f5
commit f2392dc464
2 changed files with 3 additions and 1 deletions

View File

@ -125,6 +125,7 @@ cmake:linux:clang:shared:
variables:
BUILD_SHARED_LIBS: "ON"
CC: clang
CFLAGS: "-Wno-error=cast-align"
SUFFIX: linux-clang-shared
cmake:linux:clang:static:
@ -134,6 +135,7 @@ cmake:linux:clang:static:
variables:
BUILD_SHARED_LIBS: "OFF"
CC: clang
CFLAGS: "-Wno-error=cast-align"
SUFFIX: linux-clang-static
.cmake:mingw:

View File

@ -2,10 +2,10 @@
set -e
CFLAGS="-Werror $CFLAGS" \
cmake "$@" \
-DBUILD_SHARED_LIBS=$BUILD_SHARED_LIBS \
-DCMAKE_INSTALL_PREFIX=libxml2-install \
-DCMAKE_C_FLAGS='-Werror' \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-S . -B libxml2-build
cmake --build libxml2-build --target install