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

debian: Enable -Werror for UNRELEASED builds

parent d50c0e55
No related branches found
No related tags found
1 merge request!82Enable and squash compiler warnings
......@@ -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
......
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