diff --git a/debian/rules b/debian/rules index 1da344afb6a6aa5be8c53f2628ff61f8ca88b7cb..165fe78a924f2bb5d7e66de589150bf8c19375dc 100755 --- a/debian/rules +++ b/debian/rules @@ -7,6 +7,12 @@ export LC_ALL=C.UTF-8 include /usr/share/dpkg/default.mk +meson_options = + +ifeq ($(DEB_DISTRIBUTION),UNRELEASED) +meson_options += --werror +endif + %: dh $@ @@ -30,6 +36,7 @@ override_dh_auto_configure: -Dpython=/usr/bin/$$python \ -Dsrcdir=src \ -Dversion=$(DEB_VERSION) \ + $(meson_options) \ ; then \ cat _build/meson-logs/meson-log.txt; \ exit 1; \