diff options
Diffstat (limited to 'mesonbuild/compilers/objc.py')
-rw-r--r-- | mesonbuild/compilers/objc.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py index fc82e15..83dcaad 100644 --- a/mesonbuild/compilers/objc.py +++ b/mesonbuild/compilers/objc.py @@ -20,7 +20,7 @@ from ..mesonlib import OptionKey from .compilers import Compiler from .mixins.clike import CLikeCompiler -from .mixins.gnu import GnuCompiler +from .mixins.gnu import GnuCompiler, gnu_common_warning_args, gnu_objc_warning_args from .mixins.clang import ClangCompiler if T.TYPE_CHECKING: @@ -68,7 +68,10 @@ class GnuObjCCompiler(GnuCompiler, ObjCCompiler): self.warn_args = {'0': [], '1': default_warn_args, '2': default_warn_args + ['-Wextra'], - '3': default_warn_args + ['-Wextra', '-Wpedantic']} + '3': default_warn_args + ['-Wextra', '-Wpedantic'], + 'everything': (default_warn_args + ['-Wextra', '-Wpedantic'] + + self.supported_warn_args(gnu_common_warning_args) + + self.supported_warn_args(gnu_objc_warning_args))} class ClangObjCCompiler(ClangCompiler, ObjCCompiler): @@ -85,7 +88,8 @@ class ClangObjCCompiler(ClangCompiler, ObjCCompiler): self.warn_args = {'0': [], '1': default_warn_args, '2': default_warn_args + ['-Wextra'], - '3': default_warn_args + ['-Wextra', '-Wpedantic']} + '3': default_warn_args + ['-Wextra', '-Wpedantic'], + 'everything': ['-Weverything']} def get_options(self) -> 'coredata.MutableKeyedOptionDictType': opts = super().get_options() |