|
|
|
@ -115,8 +115,8 @@ class CPPCompiler(CCompiler): |
|
|
|
|
'gnu++17': 'gnu++1z' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Currently, remapping is only supported for Clang and GCC |
|
|
|
|
assert(self.id in frozenset(['clang', 'gcc'])) |
|
|
|
|
# Currently, remapping is only supported for Clang, Elbrus and GCC |
|
|
|
|
assert(self.id in frozenset(['clang', 'lcc', 'gcc'])) |
|
|
|
|
|
|
|
|
|
if cpp_std not in CPP_FALLBACKS: |
|
|
|
|
# 'c++03' and 'c++98' don't have fallback types |
|
|
|
@ -251,10 +251,13 @@ class ElbrusCPPCompiler(GnuCPPCompiler, ElbrusCompiler): |
|
|
|
|
# It does not support c++/gnu++ 17 and 1z, but still does support 0x, 1y, and gnu++98. |
|
|
|
|
def get_options(self): |
|
|
|
|
opts = CPPCompiler.get_options(self) |
|
|
|
|
opts['cpp_std'] = coredata.UserComboOption('cpp_std', 'C++ language standard to use', |
|
|
|
|
['none', 'c++98', 'c++03', 'c++0x', 'c++11', 'c++14', 'c++1y', |
|
|
|
|
'gnu++98', 'gnu++03', 'gnu++0x', 'gnu++11', 'gnu++14', 'gnu++1y'], |
|
|
|
|
'none') |
|
|
|
|
opts.update({'cpp_std': coredata.UserComboOption('cpp_std', 'C++ language standard to use', |
|
|
|
|
['none', 'c++98', 'c++03', 'c++0x', 'c++11', 'c++14', 'c++1y', |
|
|
|
|
'gnu++98', 'gnu++03', 'gnu++0x', 'gnu++11', 'gnu++14', 'gnu++1y'], |
|
|
|
|
'none'), |
|
|
|
|
'cpp_debugstl': coredata.UserBooleanOption('cpp_debugstl', |
|
|
|
|
'STL debug mode', |
|
|
|
|
False)}) |
|
|
|
|
return opts |
|
|
|
|
|
|
|
|
|
# Elbrus C++ compiler does not have lchmod, but there is only linker warning, not compiler error. |
|
|
|
|