aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-17 12:08:20 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-09-24 12:14:13 -0700
commit04a98baafb6c779e15d423505ea1e363e61944a8 (patch)
tree47a2176e8eb90c7eff182a4e0f23ba5e2fa5a1fa /mesonbuild/compilers
parentbc532a8543d72bdbed9c150c54aa6cd48b854978 (diff)
downloadmeson-04a98baafb6c779e15d423505ea1e363e61944a8.zip
meson-04a98baafb6c779e15d423505ea1e363e61944a8.tar.gz
meson-04a98baafb6c779e15d423505ea1e363e61944a8.tar.bz2
compilers/mixins/elbrus: make type safe
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/mixins/elbrus.py6
1 files changed, 5 insertions, 1 deletions
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',