aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2019-04-19 18:06:20 +0300
committermakise-homura <akemi_homura@kurisa.ch>2019-04-19 18:06:20 +0300
commitd016e239326767bdc5e29f8dab3611c9a735c7a1 (patch)
treee29286899770e943afbe36ec6a933e7aecdb277a /mesonbuild/compilers/cpp.py
parentebe78a14e6f05884e4efb4b4ed1f3ae4d0241fa9 (diff)
downloadmeson-d016e239326767bdc5e29f8dab3611c9a735c7a1.zip
meson-d016e239326767bdc5e29f8dab3611c9a735c7a1.tar.gz
meson-d016e239326767bdc5e29f8dab3611c9a735c7a1.tar.bz2
Handle cpp_debugstl option for Elbrus compiler
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 67de684..7dd6ac9 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -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',
+ 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')
+ '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.