diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2018-03-19 23:30:00 +0300 |
---|---|---|
committer | makise-homura <akemi_homura@kurisa.ch> | 2018-03-19 23:30:00 +0300 |
commit | 7cc41baa98e486d6fd08ca5bb6f336481b757c4a (patch) | |
tree | 92c0252fc70b6ef8dbb21272ffe212d17b8ce64f /mesonbuild/compilers/compilers.py | |
parent | 22a83817c8685733adaa94c21b9b248b3e62f5f8 (diff) | |
download | meson-7cc41baa98e486d6fd08ca5bb6f336481b757c4a.zip meson-7cc41baa98e486d6fd08ca5bb6f336481b757c4a.tar.gz meson-7cc41baa98e486d6fd08ca5bb6f336481b757c4a.tar.bz2 |
Added Elbrus lcc compilers support as inheritance from gcc ones
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 034fef4..0ab9b49 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1076,6 +1076,17 @@ class GnuCompiler: return gnulike_default_include_dirs(self.exelist, self.language) +class ElbrusCompiler(GnuCompiler): + # Elbrus compiler is nearly like GCC, but does not support + # PCH, LTO, sanitizers and color output as of version 1.21.x. + def __init__(self, gcc_type, defines): + GnuCompiler.__init__(self, gcc_type, defines) + self.id = 'lcc' + self.base_options = ['b_pgo', 'b_coverage', + 'b_ndebug', 'b_staticpic', + 'b_lundef', 'b_asneeded' ] + + class ClangCompiler: def __init__(self, clang_type): self.id = 'clang' |