diff options
-rw-r--r-- | mesonbuild/compilers/mixins/xc16.py | 9 | ||||
-rwxr-xr-x | run_mypy.py | 1 |
2 files changed, 8 insertions, 2 deletions
diff --git a/mesonbuild/compilers/mixins/xc16.py b/mesonbuild/compilers/mixins/xc16.py index f12cccc..ed9be15 100644 --- a/mesonbuild/compilers/mixins/xc16.py +++ b/mesonbuild/compilers/mixins/xc16.py @@ -47,7 +47,12 @@ xc16_debug_args = { class Xc16Compiler: - def __init__(self): + + if T.TYPE_CHECKING: + can_compile_suffixes = set() # type: T.Set[str] + is_cross = True + + def __init__(self) -> None: if not self.is_cross: raise EnvironmentException('xc16 supports only cross-compilation.') self.id = 'xc16' @@ -85,7 +90,7 @@ class Xc16Compiler: def get_coverage_args(self) -> T.List[str]: return [] - + def get_no_stdinc_args(self) -> T.List[str]: return ['-nostdinc'] diff --git a/run_mypy.py b/run_mypy.py index 0e9d957..3faa230 100755 --- a/run_mypy.py +++ b/run_mypy.py @@ -28,6 +28,7 @@ modules = [ 'mesonbuild/compilers/mixins/islinker.py', 'mesonbuild/compilers/mixins/pgi.py', 'mesonbuild/compilers/mixins/visualstudio.py', + 'mesonbuild/compilers/mixins/xc16.py', # 'mesonbuild/coredata.py', 'mesonbuild/dependencies/boost.py', 'mesonbuild/dependencies/hdf5.py', |