diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2020-08-23 21:22:01 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-09-24 12:14:13 -0700 |
commit | 4cfddd1fe62f8dcd39e37b80ece88e30cc440687 (patch) | |
tree | 6e537e0fb640b8a30cbfc0d05746a22b4e2cd43c /mesonbuild/compilers | |
parent | c93395bfc7c3ff734573c599f7dbcc8fe12681e9 (diff) | |
download | meson-4cfddd1fe62f8dcd39e37b80ece88e30cc440687.zip meson-4cfddd1fe62f8dcd39e37b80ece88e30cc440687.tar.gz meson-4cfddd1fe62f8dcd39e37b80ece88e30cc440687.tar.bz2 |
compilers/mixins/ccrx: make mypy safe
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r-- | mesonbuild/compilers/mixins/ccrx.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/ccrx.py b/mesonbuild/compilers/mixins/ccrx.py index b859215..4ac815a 100644 --- a/mesonbuild/compilers/mixins/ccrx.py +++ b/mesonbuild/compilers/mixins/ccrx.py @@ -47,7 +47,12 @@ ccrx_debug_args = { class CcrxCompiler: - def __init__(self): + + if T.TYPE_CHECKING: + is_cross = True + can_compile_suffixes = set() # type: T.Set[str] + + def __init__(self) -> None: if not self.is_cross: raise EnvironmentException('ccrx supports only cross-compilation.') self.id = 'ccrx' |