]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
meson: Compile everything with stricter cflags
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 7 Sep 2020 15:57:31 +0000 (17:57 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 14 Nov 2022 09:23:18 +0000 (10:23 +0100)
meson.build

index 3dd99558fd8c786c05b514e449ba1b1e2c4b39e0..f4da0aef0b453641a05419e1d5052795759087bb 100644 (file)
@@ -130,6 +130,11 @@ test_cflags = [
 ]
 supported_test_cflags = cc.get_supported_arguments(test_cflags)
 
+# https://github.com/mesonbuild/meson/issues/3407
+if valac.version().version_compare('>= @0@'.format(vala_version))
+       add_project_arguments(supported_test_cflags, language: 'c')
+endif
+
 add_project_arguments([
                '-Wno-discarded-qualifiers',
                '-Wno-incompatible-pointer-types',