compilers/mixins/ccrx: make mypy safe

pull/7786/head
Dylan Baker 4 years ago
parent c93395bfc7
commit 4cfddd1fe6
  1. 7
      mesonbuild/compilers/mixins/ccrx.py
  2. 1
      run_mypy.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'

@ -17,6 +17,7 @@ modules = [
'mesonbuild/compilers/compilers.py',
'mesonbuild/compilers/mixins/arm.py',
'mesonbuild/compilers/mixins/c2000.py',
'mesonbuild/compilers/mixins/ccrx.py',
# 'mesonbuild/compilers/mixins/intel.py',
# 'mesonbuild/coredata.py',
'mesonbuild/dependencies/boost.py',

Loading…
Cancel
Save