aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/gnome.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-10-28 18:03:31 -0400
committerEli Schwartz <eschwartz@archlinux.org>2021-11-20 20:48:29 -0500
commitdbb109703e0b1f91965868c3ab193eff6e45eb22 (patch)
tree3e07a1bbcc8d82af19c7fc878f82253ac8f7d82f /mesonbuild/modules/gnome.py
parent4a65f3dead0d230312bd8a58f8fc1df642389033 (diff)
downloadmeson-dbb109703e0b1f91965868c3ab193eff6e45eb22.zip
meson-dbb109703e0b1f91965868c3ab193eff6e45eb22.tar.gz
meson-dbb109703e0b1f91965868c3ab193eff6e45eb22.tar.bz2
convert more mlog.deprecation into FeatureDeprecated
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r--mesonbuild/modules/gnome.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py
index d43ceec..7876fd6 100644
--- a/mesonbuild/modules/gnome.py
+++ b/mesonbuild/modules/gnome.py
@@ -990,7 +990,8 @@ class GnomeModule(ExtensionModule):
scan_command += ['--sources-top-dirs', os.path.join(state.environment.get_build_dir(), self.interpreter.subproject_dir, state.subproject)]
if '--warn-error' in scan_command:
- mlog.deprecation('Passing --warn-error is deprecated in favor of "fatal_warnings" keyword argument since v0.55')
+ FeatureDeprecated.single_use('gnome.generate_gir argument --warn-error', '0.55.0',
+ state.subproject, 'Use "fatal_warnings" keyword argument')
if kwargs['fatal_warnings']:
scan_command.append('--warn-error')