Skip to content
Snippets Groups Projects
Commit ca4eecc6 authored by Simon McVittie's avatar Simon McVittie
Browse files

debian: Make compiler warnings into errors for unreleased builds

parent 453c4d2b
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,12 @@ export LC_ALL=C.UTF-8 ...@@ -7,6 +7,12 @@ export LC_ALL=C.UTF-8
include /usr/share/dpkg/default.mk include /usr/share/dpkg/default.mk
meson_options =
ifeq ($(DEB_DISTRIBUTION),UNRELEASED)
meson_options += --werror
endif
%: %:
dh $@ dh $@
...@@ -30,6 +36,7 @@ override_dh_auto_configure: ...@@ -30,6 +36,7 @@ override_dh_auto_configure:
-Dpython=/usr/bin/$$python \ -Dpython=/usr/bin/$$python \
-Dsrcdir=src \ -Dsrcdir=src \
-Dversion=$(DEB_VERSION) \ -Dversion=$(DEB_VERSION) \
$(meson_options) \
; then \ ; then \
cat _build/meson-logs/meson-log.txt; \ cat _build/meson-logs/meson-log.txt; \
exit 1; \ exit 1; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment