Skip to content

Commit

Permalink
ci: raise error when Meson generates warnings
Browse files Browse the repository at this point in the history
Meson prints warnings in several cases, like for example when using a
feature supported by the current version of Meson, but not yet supported
by the minimum required version as declared by the project. These
warnings will not cause the setup to fail by default, which makes it
quite easy to miss them.

Improve this by passing `--fatal-meson-warnings` to `meson setup` so
that our CI jobs will fail on warnings.

Signed-off-by: Patrick Steinhardt <[email protected]>
  • Loading branch information
pks-t committed Jan 14, 2025
1 parent df0a713 commit 4df285b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/run-build-and-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ esac
case "$jobname" in
*-meson)
group "Configure" meson setup build . \
--fatal-meson-warnings \
--warnlevel 2 --werror \
--wrap-mode nofallback \
-Dfuzzers=true
Expand Down

0 comments on commit 4df285b

Please sign in to comment.