From f7cde8d3f62c0ae0ef445698a407d1bdb2218cd6 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 8 Jul 2022 10:13:31 -0700 Subject: 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. --- mesonbuild/environment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mesonbuild/environment.py') diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 2e2a228ea..9ad40fb4a 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -455,7 +455,7 @@ class Environment: # If we stored previous command line options, we can recover from # a broken/outdated coredata. if os.path.isfile(coredata.get_cmd_line_file(self.build_dir)): - mlog.warning('Regenerating configuration from scratch.') + mlog.warning('Regenerating configuration from scratch.', fatal=False) mlog.log('Reason:', mlog.red(str(e))) coredata.read_cmd_line_file(self.build_dir, options) self.create_new_coredata(options) @@ -551,7 +551,8 @@ class Environment: if bt in self.options and (db in self.options or op in self.options): mlog.warning('Recommend using either -Dbuildtype or -Doptimization + -Ddebug. ' 'Using both is redundant since they override each other. ' - 'See: https://mesonbuild.com/Builtin-options.html#build-type-options') + 'See: https://mesonbuild.com/Builtin-options.html#build-type-options', + fatal=False) exe_wrapper = self.lookup_binary_entry(MachineChoice.HOST, 'exe_wrapper') if exe_wrapper is not None: -- cgit v1.2.3