From: Evgeny Vereshchagin Date: Fri, 19 Jun 2020 22:44:09 +0000 (+0200) Subject: ci: pass -Werror using CFLAGS X-Git-Tag: v246-rc1~127^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6175fbe451399fa86b9c1ecd56474d9696f8315;p=thirdparty%2Fsystemd.git ci: pass -Werror using CFLAGS Judging by https://github.com/systemd/systemd/issues/16224, it seems `--werror` doesn't work with `-Db_lto=true` --- diff --git a/.github/workflows/ubuntu-build-check.sh b/.github/workflows/ubuntu-build-check.sh index fb7c71ecb89..75fc36fffb1 100755 --- a/.github/workflows/ubuntu-build-check.sh +++ b/.github/workflows/ubuntu-build-check.sh @@ -102,7 +102,7 @@ for args in "${ARGS[@]}"; do SECONDS=0 info "Checking build with $args" - if ! AR="$AR" CC="$CC" CXX="$CXX" meson -Dtests=unsafe -Dslow-tests=true --werror $args build; then + if ! AR="$AR" CC="$CC" CXX="$CXX" CFLAGS="-Werror" CXXFLAGS="-Werror" meson -Dtests=unsafe -Dslow-tests=true --werror $args build; then fatal "meson failed with $args" fi