diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2020-09-21 10:38:17 -0700 | 
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2020-09-24 12:14:13 -0700 | 
| commit | 2c0fbe161d61d2d15d29892456544442ab1c4ff6 (patch) | |
| tree | 18eea4af185465640f29727a3761e3b1af5c36fc /mesonbuild/compilers/objc.py | |
| parent | 1592b7a800c3b109a1b502bfb03f4e21827da334 (diff) | |
| download | meson-2c0fbe161d61d2d15d29892456544442ab1c4ff6.tar.gz | |
compilers: make is_cross part of the base Compiler class
Every class needs to set this, so it should be part of the base. For
classes that require is_cross, the positional argument remains in their
signature. For those that don't, they just allow the base class to set
their value to it's default of False.
Diffstat (limited to 'mesonbuild/compilers/objc.py')
| -rw-r--r-- | mesonbuild/compilers/objc.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/mesonbuild/compilers/objc.py b/mesonbuild/compilers/objc.py index 254a609bf..142084e79 100644 --- a/mesonbuild/compilers/objc.py +++ b/mesonbuild/compilers/objc.py @@ -33,8 +33,8 @@ class ObjCCompiler(CLikeCompiler, Compiler):      def __init__(self, exelist, version, for_machine: MachineChoice,                   is_cross: bool, info: 'MachineInfo',                   exe_wrap: T.Optional[str], **kwargs): -        Compiler.__init__(self, exelist, version, for_machine, info, **kwargs) -        CLikeCompiler.__init__(self, is_cross, exe_wrap) +        Compiler.__init__(self, exelist, version, for_machine, info, is_cross=is_cross, **kwargs) +        CLikeCompiler.__init__(self, exe_wrap)      @staticmethod      def get_display_language(): | 
