compilers/mixins/elbrus: make type safe

pull/7786/head
Dylan Baker 4 years ago
parent bc532a8543
commit 04a98baafb
  1. 6
      mesonbuild/compilers/mixins/elbrus.py
  2. 1
      run_mypy.py

@ -30,7 +30,11 @@ if T.TYPE_CHECKING:
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):
if T.TYPE_CHECKING:
exelist = [] # type: T.List[str]
def __init__(self) -> None:
super().__init__()
self.id = 'lcc'
self.base_options = ['b_pgo', 'b_coverage',

@ -21,6 +21,7 @@ modules = [
'mesonbuild/compilers/mixins/clang.py',
'mesonbuild/compilers/mixins/clike.py',
'mesonbuild/compilers/mixins/compcert.py',
'mesonbuild/compilers/mixins/elbrus.py',
'mesonbuild/compilers/mixins/gnu.py',
# 'mesonbuild/compilers/mixins/intel.py',
# 'mesonbuild/coredata.py',

Loading…
Cancel
Save