diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2022-07-08 10:13:31 -0700 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-01-03 14:49:02 -0500 |
commit | f7cde8d3f62c0ae0ef445698a407d1bdb2218cd6 (patch) | |
tree | 56a4129e486cdb2ae73b7fb5c5fb00168ce0c138 /mesonbuild/modules | |
parent | 0a873f6470bf4e621f1ce2eeb250b5f5b918ac63 (diff) | |
download | meson-f7cde8d3f62c0ae0ef445698a407d1bdb2218cd6.zip meson-f7cde8d3f62c0ae0ef445698a407d1bdb2218cd6.tar.gz meson-f7cde8d3f62c0ae0ef445698a407d1bdb2218cd6.tar.bz2 |
Add fatal=False to many mlog.warnings()
There are lots of warnings that become fatal, that are simply unfixable
by the end user. Things like using old versions of software (because
they're using some kind of LTS release), warnings about compilers not
supporting certain kinds of checks, or standards being upgraded due to
skipped implementations (MSVC has c++98 and c++14, but not c++11). None
of these should be fatal, they're informative, and too important to
reduce to notices, but not important enough to stop meson if they're
printed.
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/gnome.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index d447f09..b9f97ff 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -319,14 +319,15 @@ class GnomeModule(ExtensionModule): gresource_dep_needed_version): mlog.warning('GLib compiled dependencies do not work reliably with \n' 'the current version of GLib. See the following upstream issue:', - mlog.bold('https://bugzilla.gnome.org/show_bug.cgi?id=774368')) + mlog.bold('https://bugzilla.gnome.org/show_bug.cgi?id=774368'), + fatal=False) @staticmethod def _print_gdbus_warning() -> None: mlog.warning('Code generated with gdbus_codegen() requires the root directory be added to\n' ' include_directories of targets with GLib < 2.51.3:', mlog.bold('https://github.com/mesonbuild/meson/issues/1387'), - once=True) + once=True, fatal=False) @typed_kwargs( 'gnome.post_install', @@ -1966,7 +1967,8 @@ class GnomeModule(ExtensionModule): else: mlog.warning('The current version of GLib does not support extra arguments \n' 'for glib-genmarshal. You need at least GLib 2.53.3. See ', - mlog.bold('https://github.com/mesonbuild/meson/pull/2049')) + mlog.bold('https://github.com/mesonbuild/meson/pull/2049'), + fatal=False) for k in ['internal', 'nostdinc', 'skip_source', 'stdinc', 'valist_marshallers']: # Mypy can't figure out that this is correct if kwargs[k]: # type: ignore |