|
|
@ -156,7 +156,7 @@ class CPPCompiler(CLikeCompiler, Compiler): |
|
|
|
class ClangCPPCompiler(ClangCompiler, CPPCompiler): |
|
|
|
class ClangCPPCompiler(ClangCompiler, CPPCompiler): |
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, |
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, |
|
|
|
is_cross, info: 'MachineInfo', exe_wrapper=None, |
|
|
|
is_cross, info: 'MachineInfo', exe_wrapper=None, |
|
|
|
defines : T.Optional[T.List[str]] = None, **kwargs): |
|
|
|
defines: T.Optional[T.List[str]] = None, **kwargs): |
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, |
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, |
|
|
|
info, exe_wrapper, **kwargs) |
|
|
|
info, exe_wrapper, **kwargs) |
|
|
|
ClangCompiler.__init__(self, defines) |
|
|
|
ClangCompiler.__init__(self, defines) |
|
|
@ -240,8 +240,8 @@ class ArmclangCPPCompiler(ArmclangCompiler, CPPCompiler): |
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, |
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, |
|
|
|
is_cross, info: 'MachineInfo', exe_wrapper=None, **kwargs): |
|
|
|
is_cross, info: 'MachineInfo', exe_wrapper=None, **kwargs): |
|
|
|
CPPCompiler.__init__(self, exelist=exelist, version=version, |
|
|
|
CPPCompiler.__init__(self, exelist=exelist, version=version, |
|
|
|
for_machine=for_machine, is_cross=is_cross, |
|
|
|
for_machine=for_machine, is_cross=is_cross, |
|
|
|
info=info, exe_wrapper=exe_wrapper, **kwargs) |
|
|
|
info=info, exe_wrapper=exe_wrapper, **kwargs) |
|
|
|
ArmclangCompiler.__init__(self) |
|
|
|
ArmclangCompiler.__init__(self) |
|
|
|
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': [], |
|
|
@ -305,7 +305,7 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler): |
|
|
|
'std': coredata.UserComboOption( |
|
|
|
'std': coredata.UserComboOption( |
|
|
|
'C++ language standard to use', |
|
|
|
'C++ language standard to use', |
|
|
|
['none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z', 'c++2a', |
|
|
|
['none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z', 'c++2a', |
|
|
|
'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17', 'gnu++1z', 'gnu++2a'], |
|
|
|
'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17', 'gnu++1z', 'gnu++2a'], |
|
|
|
'none', |
|
|
|
'none', |
|
|
|
), |
|
|
|
), |
|
|
|
'debugstl': coredata.UserBooleanOption( |
|
|
|
'debugstl': coredata.UserBooleanOption( |
|
|
@ -356,6 +356,15 @@ class PGICPPCompiler(PGICompiler, CPPCompiler): |
|
|
|
PGICompiler.__init__(self) |
|
|
|
PGICompiler.__init__(self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class NvidiaHPC_CPPCompiler(PGICompiler, CPPCompiler): |
|
|
|
|
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, |
|
|
|
|
|
|
|
is_cross, info: 'MachineInfo', exe_wrapper=None, **kwargs): |
|
|
|
|
|
|
|
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, info, exe_wrapper, **kwargs) |
|
|
|
|
|
|
|
PGICompiler.__init__(self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.id = 'nvidia_hpc' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ElbrusCPPCompiler(GnuCPPCompiler, ElbrusCompiler): |
|
|
|
class ElbrusCPPCompiler(GnuCPPCompiler, ElbrusCompiler): |
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, |
|
|
|
def __init__(self, exelist, version, for_machine: MachineChoice, |
|
|
|
is_cross, info: 'MachineInfo', exe_wrapper=None, |
|
|
|
is_cross, info: 'MachineInfo', exe_wrapper=None, |
|
|
|