diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-01-28 09:58:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 09:58:08 -0800 |
commit | 3d60665885132cceccc7d80640a5b4735d6a7d48 (patch) | |
tree | e284a49e9c2b66c31d8dffede7db4703f2aafb4a /mesonbuild/compilers/cpp.py | |
parent | 0fe485a100ee556bf1d600e6bb87640641b67a76 (diff) | |
parent | ee6c2c87fc238e673c609ad7200bd0aa66af03b4 (diff) | |
download | meson-3d60665885132cceccc7d80640a5b4735d6a7d48.zip meson-3d60665885132cceccc7d80640a5b4735d6a7d48.tar.gz meson-3d60665885132cceccc7d80640a5b4735d6a7d48.tar.bz2 |
Merge pull request #6455 from makise-homura/elbrus_0.53.0
Elbrus support is broken in 0.53.0, so fixing it
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r-- | mesonbuild/compilers/cpp.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index a09c611..443a9ee 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -325,7 +325,7 @@ class ElbrusCPPCompiler(GnuCPPCompiler, ElbrusCompiler): GnuCPPCompiler.__init__(self, exelist, version, for_machine, is_cross, info, exe_wrapper, defines, **kwargs) - ElbrusCompiler.__init__(self, defines) + ElbrusCompiler.__init__(self) # It does not support c++/gnu++ 17 and 1z, but still does support 0x, 1y, and gnu++98. def get_options(self): @@ -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, |