From 04a98baafb6c779e15d423505ea1e363e61944a8 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 17 Sep 2020 12:08:20 -0700 Subject: compilers/mixins/elbrus: make type safe --- mesonbuild/compilers/mixins/elbrus.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mesonbuild/compilers') diff --git a/mesonbuild/compilers/mixins/elbrus.py b/mesonbuild/compilers/mixins/elbrus.py index db743d8..3a7437c 100644 --- a/mesonbuild/compilers/mixins/elbrus.py +++ b/mesonbuild/compilers/mixins/elbrus.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', -- cgit v1.1