aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2020-01-13 17:19:09 +0300
committermakise-homura <akemi_homura@kurisa.ch>2020-01-27 22:35:26 +0300
commitca1f7726d5137a6cdd510c07e2b413f1b6b31967 (patch)
tree2f579a5ae6c87ba3bbf03f831835d7eeab352ada /mesonbuild/compilers/cpp.py
parent7870cc0d910c22609ff59188f5e0760a6cc6f08d (diff)
downloadmeson-ca1f7726d5137a6cdd510c07e2b413f1b6b31967.zip
meson-ca1f7726d5137a6cdd510c07e2b413f1b6b31967.tar.gz
meson-ca1f7726d5137a6cdd510c07e2b413f1b6b31967.tar.bz2
Remove RTTI option from get_option_compile_args() for Elbrus compiler
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 2ed969a..443a9ee 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -351,6 +351,19 @@ class ElbrusCPPCompiler(GnuCPPCompiler, ElbrusCompiler):
extra_args=extra_args,
dependencies=dependencies)
+ # Elbrus C++ compiler does not support RTTI, so don't check for it.
+ def get_option_compile_args(self, options):
+ args = []
+ std = options['cpp_std']
+ if std.value != 'none':
+ args.append(self._find_best_cpp_std(std.value))
+
+ non_msvc_eh_options(options['cpp_eh'].value, args)
+
+ if options['cpp_debugstl'].value:
+ args.append('-D_GLIBCXX_DEBUG=1')
+ return args
+
class IntelCPPCompiler(IntelGnuLikeCompiler, CPPCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice,