ci: make Meson warnings fatal

New warnings can be hard to notice in CI, since CI will just pass in
that case. Meson sometimes uses warnings for important mistakes, e.g.
invalid option.

Let's turn warnings into errors so that we can spot these more easily.
master
Simon Ser 4 years ago
parent 151193b4cd
commit 56733bc6fe

@ -30,7 +30,7 @@ tasks:
sudo ninja -C build install sudo ninja -C build install
- setup: | - setup: |
cd sway cd sway
meson build -Dauto_features=enabled -Dtray=disabled meson build --fatal-meson-warnings -Dauto_features=enabled -Dtray=disabled
- build: | - build: |
cd sway cd sway
ninja -C build ninja -C build
@ -43,5 +43,5 @@ tasks:
mkdir subprojects mkdir subprojects
ln -s ../../wlroots subprojects/wlroots ln -s ../../wlroots subprojects/wlroots
rm -rf build rm -rf build
meson build --default-library=static --force-fallback-for=wlroots meson build --fatal-meson-warnings --default-library=static --force-fallback-for=wlroots
ninja -C build ninja -C build

@ -27,7 +27,7 @@ tasks:
sudo ninja -C build install sudo ninja -C build install
- setup: | - setup: |
cd sway cd sway
meson build -Dauto_features=enabled -Dsd-bus-provider=libsystemd meson build --fatal-meson-warnings -Dauto_features=enabled -Dsd-bus-provider=libsystemd
- build: | - build: |
cd sway cd sway
ninja -C build ninja -C build

@ -34,7 +34,7 @@ tasks:
cd subprojects cd subprojects
ln -s ../../wlroots wlroots ln -s ../../wlroots wlroots
cd .. cd ..
meson build -Dtray=enabled -Dsd-bus-provider=basu meson build --fatal-meson-warnings -Dtray=enabled -Dsd-bus-provider=basu
- build: | - build: |
cd sway cd sway
ninja -C build ninja -C build

Loading…
Cancel
Save