compilers/objc[pp]: Pass extra keyword arguments to Compiler constructor
This commit is contained in:
parent
1c455ee630
commit
e7db288e19
|
@ -23,9 +23,9 @@ from .mixins.gnu import GnuCompiler
|
||||||
from .mixins.clang import ClangCompiler
|
from .mixins.clang import ClangCompiler
|
||||||
|
|
||||||
class ObjCCompiler(CLikeCompiler, Compiler):
|
class ObjCCompiler(CLikeCompiler, Compiler):
|
||||||
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross: bool, exe_wrap: typing.Optional[str]):
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross: bool, exe_wrap: typing.Optional[str], **kwargs):
|
||||||
self.language = 'objc'
|
self.language = 'objc'
|
||||||
Compiler.__init__(self, exelist, version, for_machine)
|
Compiler.__init__(self, exelist, version, for_machine, **kwargs)
|
||||||
CLikeCompiler.__init__(self, is_cross, exe_wrap)
|
CLikeCompiler.__init__(self, is_cross, exe_wrap)
|
||||||
|
|
||||||
def get_display_language(self):
|
def get_display_language(self):
|
||||||
|
@ -57,8 +57,8 @@ class ObjCCompiler(CLikeCompiler, Compiler):
|
||||||
|
|
||||||
|
|
||||||
class GnuObjCCompiler(GnuCompiler, ObjCCompiler):
|
class GnuObjCCompiler(GnuCompiler, ObjCCompiler):
|
||||||
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, defines=None):
|
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, defines=None, **kwargs):
|
||||||
ObjCCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper)
|
ObjCCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper, **kwargs)
|
||||||
GnuCompiler.__init__(self, compiler_type, defines)
|
GnuCompiler.__init__(self, compiler_type, defines)
|
||||||
default_warn_args = ['-Wall', '-Winvalid-pch']
|
default_warn_args = ['-Wall', '-Winvalid-pch']
|
||||||
self.warn_args = {'0': [],
|
self.warn_args = {'0': [],
|
||||||
|
@ -68,8 +68,8 @@ class GnuObjCCompiler(GnuCompiler, ObjCCompiler):
|
||||||
|
|
||||||
|
|
||||||
class ClangObjCCompiler(ClangCompiler, ObjCCompiler):
|
class ClangObjCCompiler(ClangCompiler, ObjCCompiler):
|
||||||
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None):
|
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, **kwargs):
|
||||||
ObjCCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper)
|
ObjCCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper, **kwargs)
|
||||||
ClangCompiler.__init__(self, compiler_type)
|
ClangCompiler.__init__(self, compiler_type)
|
||||||
default_warn_args = ['-Wall', '-Winvalid-pch']
|
default_warn_args = ['-Wall', '-Winvalid-pch']
|
||||||
self.warn_args = {'0': [],
|
self.warn_args = {'0': [],
|
||||||
|
|
|
@ -23,9 +23,9 @@ from .mixins.gnu import GnuCompiler
|
||||||
from .mixins.clang import ClangCompiler
|
from .mixins.clang import ClangCompiler
|
||||||
|
|
||||||
class ObjCPPCompiler(CLikeCompiler, Compiler):
|
class ObjCPPCompiler(CLikeCompiler, Compiler):
|
||||||
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross: bool, exe_wrap: typing.Optional[str]):
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross: bool, exe_wrap: typing.Optional[str], **kwargs):
|
||||||
self.language = 'objcpp'
|
self.language = 'objcpp'
|
||||||
Compiler.__init__(self, exelist, version, for_machine)
|
Compiler.__init__(self, exelist, version, for_machine, **kwargs)
|
||||||
CLikeCompiler.__init__(self, is_cross, exe_wrap)
|
CLikeCompiler.__init__(self, is_cross, exe_wrap)
|
||||||
|
|
||||||
def get_display_language(self):
|
def get_display_language(self):
|
||||||
|
@ -58,8 +58,8 @@ class ObjCPPCompiler(CLikeCompiler, Compiler):
|
||||||
|
|
||||||
|
|
||||||
class GnuObjCPPCompiler(GnuCompiler, ObjCPPCompiler):
|
class GnuObjCPPCompiler(GnuCompiler, ObjCPPCompiler):
|
||||||
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, defines=None):
|
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, defines=None, **kwargs):
|
||||||
ObjCPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper)
|
ObjCPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper, **kwargs)
|
||||||
GnuCompiler.__init__(self, compiler_type, defines)
|
GnuCompiler.__init__(self, compiler_type, defines)
|
||||||
default_warn_args = ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor']
|
default_warn_args = ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor']
|
||||||
self.warn_args = {'0': [],
|
self.warn_args = {'0': [],
|
||||||
|
@ -69,8 +69,8 @@ class GnuObjCPPCompiler(GnuCompiler, ObjCPPCompiler):
|
||||||
|
|
||||||
|
|
||||||
class ClangObjCPPCompiler(ClangCompiler, ObjCPPCompiler):
|
class ClangObjCPPCompiler(ClangCompiler, ObjCPPCompiler):
|
||||||
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None):
|
def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, **kwargs):
|
||||||
ObjCPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper)
|
ObjCPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper, **kwargs)
|
||||||
ClangCompiler.__init__(self, compiler_type)
|
ClangCompiler.__init__(self, compiler_type)
|
||||||
default_warn_args = ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor']
|
default_warn_args = ['-Wall', '-Winvalid-pch', '-Wnon-virtual-dtor']
|
||||||
self.warn_args = {'0': [],
|
self.warn_args = {'0': [],
|
||||||
|
|
Loading…
Reference in New Issue