diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-12-05 15:01:22 +0100 |
---|---|---|
committer | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2019-12-05 11:08:12 -0500 |
commit | 0cf31e2340c20ecac7934a504be5f2989e90edb4 (patch) | |
tree | 2f70e01573e12f6f20ea19aeae464e341a753836 /mesonbuild/compilers | |
parent | f1971fed908f5a6e181e5a864f8177b16587d2de (diff) | |
download | meson-0cf31e2340c20ecac7934a504be5f2989e90edb4.zip meson-0cf31e2340c20ecac7934a504be5f2989e90edb4.tar.gz meson-0cf31e2340c20ecac7934a504be5f2989e90edb4.tar.bz2 |
lgtm: fix Multiple calls to __init__
Some slight refactoring for the dependency classes and
I switched the elbrus compiler to the GnuLikeCompiler.
This is also the correct use according to the documentation
of GnuLikeCompiler.
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/mixins/elbrus.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/mixins/elbrus.py b/mesonbuild/compilers/mixins/elbrus.py index 387c5b8..e157d87 100644 --- a/mesonbuild/compilers/mixins/elbrus.py +++ b/mesonbuild/compilers/mixins/elbrus.py @@ -19,18 +19,18 @@ import typing import subprocess import re -from .gnu import GnuCompiler +from .gnu import GnuLikeCompiler from ...mesonlib import Popen_safe if typing.TYPE_CHECKING: from ...environment import Environment -class ElbrusCompiler(GnuCompiler): +class ElbrusCompiler(GnuLikeCompiler): # 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, defines: typing.Dict[str, str]): - GnuCompiler.__init__(self, defines) + super().__init__() self.id = 'lcc' self.base_options = ['b_pgo', 'b_coverage', 'b_ndebug', 'b_staticpic', |