|
|
|
@ -134,7 +134,7 @@ class _ClangCStds(CompilerMixinBase): |
|
|
|
|
if version_compare(self.version, self._C2X_VERSION): |
|
|
|
|
c_stds += ['c2x'] |
|
|
|
|
g_stds += ['gnu2x'] |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds # type: ignore |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -225,7 +225,7 @@ class ArmclangCCompiler(ArmclangCompiler, CCompiler): |
|
|
|
|
|
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = CCompiler.get_options(self) |
|
|
|
|
opts['std'].choices = ['none', 'c90', 'c99', 'c11', 'gnu90', 'gnu99', 'gnu11'] # type: ignore |
|
|
|
|
opts['std'].choices = ['none', 'c90', 'c99', 'c11', 'gnu90', 'gnu99', 'gnu11'] |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]: |
|
|
|
@ -267,7 +267,7 @@ class GnuCCompiler(GnuCompiler, CCompiler): |
|
|
|
|
if version_compare(self.version, self._C2X_VERSION): |
|
|
|
|
c_stds += ['c2x'] |
|
|
|
|
g_stds += ['gnu2x'] |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds # type: ignore |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds |
|
|
|
|
if self.info.is_windows() or self.info.is_cygwin(): |
|
|
|
|
opts.update({ |
|
|
|
|
'winlibs': coredata.UserArrayOption( |
|
|
|
@ -333,7 +333,7 @@ class ElbrusCCompiler(GnuCCompiler, ElbrusCompiler): |
|
|
|
|
# It does support some various ISO standards and c/gnu 90, 9x, 1x in addition to those which GNU CC supports. |
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = CCompiler.get_options(self) |
|
|
|
|
opts['std'].choices = [ # type: ignore |
|
|
|
|
opts['std'].choices = [ |
|
|
|
|
'none', 'c89', 'c90', 'c9x', 'c99', 'c1x', 'c11', |
|
|
|
|
'gnu89', 'gnu90', 'gnu9x', 'gnu99', 'gnu1x', 'gnu11', |
|
|
|
|
'iso9899:2011', 'iso9899:1990', 'iso9899:199409', 'iso9899:1999', |
|
|
|
@ -374,7 +374,7 @@ class IntelCCompiler(IntelGnuLikeCompiler, CCompiler): |
|
|
|
|
g_stds = ['gnu89', 'gnu99'] |
|
|
|
|
if version_compare(self.version, '>=16.0.0'): |
|
|
|
|
c_stds += ['c11'] |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds # type: ignore |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]: |
|
|
|
@ -436,7 +436,7 @@ class VisualStudioCCompiler(MSVCCompiler, VisualStudioLikeCCompilerMixin, CCompi |
|
|
|
|
if version_compare(self.version, self._C17_VERSION): |
|
|
|
|
c_stds += ['c17', 'c18'] |
|
|
|
|
g_stds += ['gnu17', 'gnu18'] |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds # type: ignore |
|
|
|
|
opts['std'].choices = ['none'] + c_stds + g_stds |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]: |
|
|
|
@ -489,7 +489,7 @@ class IntelClCCompiler(IntelVisualStudioLikeCompiler, VisualStudioLikeCCompilerM |
|
|
|
|
|
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = super().get_options() |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'c11'] # type: ignore |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'c11'] |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]: |
|
|
|
@ -515,7 +515,7 @@ class ArmCCompiler(ArmCompiler, CCompiler): |
|
|
|
|
|
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = CCompiler.get_options(self) |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'c11'] # type: ignore |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'c11'] |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]: |
|
|
|
@ -542,7 +542,7 @@ class CcrxCCompiler(CcrxCompiler, CCompiler): |
|
|
|
|
|
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = CCompiler.get_options(self) |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99'] # type: ignore |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99'] |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_no_stdinc_args(self) -> T.List[str]: |
|
|
|
@ -587,7 +587,7 @@ class Xc16CCompiler(Xc16Compiler, CCompiler): |
|
|
|
|
|
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = CCompiler.get_options(self) |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'gnu89', 'gnu99'] # type: ignore |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'gnu89', 'gnu99'] |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_no_stdinc_args(self) -> T.List[str]: |
|
|
|
@ -630,7 +630,7 @@ class CompCertCCompiler(CompCertCompiler, CCompiler): |
|
|
|
|
|
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = CCompiler.get_options(self) |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99'] # type: ignore |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99'] |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]: |
|
|
|
@ -666,7 +666,7 @@ class C2000CCompiler(C2000Compiler, CCompiler): |
|
|
|
|
|
|
|
|
|
def get_options(self) -> 'OptionDictType': |
|
|
|
|
opts = CCompiler.get_options(self) |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'c11'] # type: ignore |
|
|
|
|
opts['std'].choices = ['none', 'c89', 'c99', 'c11'] |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
def get_no_stdinc_args(self) -> T.List[str]: |
|
|
|
|