summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build4
-rw-r--r--meson_options.txt1
2 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 3f8671cf..b7034cd9 100644
--- a/meson.build
+++ b/meson.build
@@ -64,6 +64,10 @@ config_include = include_directories('.')
add_global_arguments(['-include','config.h'], language : 'c')
+if get_option('fatal_warnings')
+ add_global_arguments(['--fatal-warnings'], language : 'vala')
+endif
+
valadoc = find_program('valadoc', required : false)
gtkdoc = dependency('gtk-doc', required : false)
diff --git a/meson_options.txt b/meson_options.txt
index 6de516f8..bd61fb60 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -8,3 +8,4 @@ option('tests', type : 'boolean', value : 'true')
option('gstreamer', type : 'feature', value : 'enabled')
option('gtk', type : 'feature', value : 'enabled')
option('introspection', type: 'feature', value : 'auto')
+option('fatal_warnings', type: 'boolean', value : 'false')