From 7787be6575e5ae19a466f8d69b3c9f72e11b9fe0 Mon Sep 17 00:00:00 2001 From: Simon McVittie <smcv@collabora.com> Date: Mon, 11 Nov 2019 17:05:11 +0000 Subject: [PATCH] debian: Enable -Werror for UNRELEASED builds Signed-off-by: Simon McVittie <smcv@collabora.com> --- debian/rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 9e30a9ef6..41b2ae0ba 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,12 @@ ifeq ($(shell dpkg --compare-versions `c++ -dumpversion || echo 0` ge 4.8 || ech export CXX = g++-4.8 endif +meson_options = + +ifeq ($(DEB_DISTRIBUTION),UNRELEASED) +meson_options += --werror +endif + gtk_doc_has_cflags := $(shell \ if gtkdoc-scangobj --help 2>&1 | grep '[-]-cflags' >/dev/null; then \ echo true; \ @@ -42,7 +48,7 @@ override_dh_auto_configure: -Dgtk_doc=$(gtk_doc_has_cflags) \ -Dintrospection=false \ -Dmultiarch_tuple=$(DEB_HOST_MULTIARCH) \ - $(NULL) + $(meson_options) override_dh_auto_build: ninja -C builddir -- GitLab