summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authormid-kid <esteve.varela@gmail.com>2024-09-29 12:51:17 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2024-09-29 21:32:50 +0300
commitddc03e5ab3449efcded44ac35e3d6934bdc85c1e (patch)
treeb566b0de89475225532f294924a11d9af38c7cea /mesonbuild/compilers
parentaed67bbb685a4d70451e34d993574e31f91386b8 (diff)
downloadmeson-ddc03e5ab3449efcded44ac35e3d6934bdc85c1e.tar.gz
metrowerks: Pass warning flags to all subtools
The "on" option is documented as passing the warning flags to all subtools, and implies "most". The default in the majority of projects is -warnings on,nocmdline, which I'd take to be the equivalent of -Wall -Wextra, there isn't really an inbetween.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/mixins/metrowerks.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/mesonbuild/compilers/mixins/metrowerks.py b/mesonbuild/compilers/mixins/metrowerks.py
index 561b50cea..60982212e 100644
--- a/mesonbuild/compilers/mixins/metrowerks.py
+++ b/mesonbuild/compilers/mixins/metrowerks.py
@@ -179,13 +179,12 @@ class MetrowerksCompiler(Compiler):
self.base_options = {
OptionKey(o) for o in ['b_pch', 'b_ndebug']}
- default_warn_args: T.List[str] = []
self.warn_args: T.Dict[str, T.List[str]] = {
- '0': ['-w', 'off'],
- '1': default_warn_args,
- '2': default_warn_args + ['-w', 'most'],
- '3': default_warn_args + ['-w', 'all'],
- 'everything': default_warn_args + ['-w', 'full']}
+ '0': ['-warnings', 'off'],
+ '1': [],
+ '2': ['-warnings', 'on,nocmdline'],
+ '3': ['-warnings', 'on,all'],
+ 'everything': ['-warnings', 'on,full']}
def depfile_for_object(self, objfile: str) -> T.Optional[str]:
# Earlier versions of these compilers do not support specifying