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/environment.py | |
| parent | 0a873f6470bf4e621f1ce2eeb250b5f5b918ac63 (diff) | |
| download | meson-f7cde8d3f62c0ae0ef445698a407d1bdb2218cd6.tar.gz | |
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/environment.py')
| -rw-r--r-- | mesonbuild/environment.py | 5 |
1 files changed, 3 insertions, 2 deletions
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: |
