Skip to content

Commit

Permalink
ci: pass -Werror using CFLAGS
Browse files Browse the repository at this point in the history
Judging by systemd#16224, it seems
`--werror` doesn't work with `-Db_lto=true`
  • Loading branch information
evverx authored and yuwata committed Jun 22, 2020
1 parent 8d9982e commit e6175fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu-build-check.sh
Expand Up @@ -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

Expand Down

0 comments on commit e6175fb

Please sign in to comment.