|
|
|
@ -473,8 +473,8 @@ class CPP11AsCPP14Mixin: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class VisualStudioCPPCompiler(CPP11AsCPP14Mixin, VisualStudioLikeCPPCompilerMixin, VisualStudioLikeCompiler, CPPCompiler): |
|
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross: bool, exe_wrap, target): |
|
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrap) |
|
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross: bool, exe_wrap, target, **kwargs): |
|
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrap, **kwargs) |
|
|
|
|
VisualStudioLikeCompiler.__init__(self, target) |
|
|
|
|
self.base_options = ['b_pch', 'b_vscrt'] # FIXME add lto, pgo and the like |
|
|
|
|
self.id = 'msvc' |
|
|
|
@ -506,8 +506,8 @@ class VisualStudioCPPCompiler(CPP11AsCPP14Mixin, VisualStudioLikeCPPCompilerMixi |
|
|
|
|
return args |
|
|
|
|
|
|
|
|
|
class ClangClCPPCompiler(CPP11AsCPP14Mixin, VisualStudioLikeCPPCompilerMixin, VisualStudioLikeCompiler, CPPCompiler): |
|
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, exe_wrap, target): |
|
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrap) |
|
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, exe_wrap, target, **kwargs): |
|
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrap, **kwargs) |
|
|
|
|
VisualStudioLikeCompiler.__init__(self, target) |
|
|
|
|
self.id = 'clang-cl' |
|
|
|
|
|
|
|
|
@ -518,8 +518,8 @@ class ClangClCPPCompiler(CPP11AsCPP14Mixin, VisualStudioLikeCPPCompilerMixin, Vi |
|
|
|
|
|
|
|
|
|
class IntelClCPPCompiler(VisualStudioLikeCPPCompilerMixin, IntelVisualStudioLikeCompiler, CPPCompiler): |
|
|
|
|
|
|
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, exe_wrap, target): |
|
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrap) |
|
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, exe_wrap, target, **kwargs): |
|
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrap, **kwargs) |
|
|
|
|
IntelVisualStudioLikeCompiler.__init__(self, target) |
|
|
|
|
|
|
|
|
|
def get_options(self): |
|
|
|
|