compilers/mixins/c2000: Make mypy safe
This commit is contained in:
parent
b7db3660a0
commit
c93395bfc7
|
@ -47,7 +47,12 @@ c2000_debug_args = {
|
|||
|
||||
|
||||
class C2000Compiler:
|
||||
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('c2000 supports only cross-compilation.')
|
||||
self.id = 'c2000'
|
||||
|
|
|
@ -16,6 +16,7 @@ modules = [
|
|||
'mesonbuild/arglist.py',
|
||||
'mesonbuild/compilers/compilers.py',
|
||||
'mesonbuild/compilers/mixins/arm.py',
|
||||
'mesonbuild/compilers/mixins/c2000.py',
|
||||
# 'mesonbuild/compilers/mixins/intel.py',
|
||||
# 'mesonbuild/coredata.py',
|
||||
'mesonbuild/dependencies/boost.py',
|
||||
|
|
Loading…
Reference in New Issue