From fa1398f86cafb300aae737cc737c97ec6b15c61c Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 17 Sep 2020 12:37:09 -0700 Subject: compilers/mixins: make xc16 type safe --- mesonbuild/compilers/mixins/xc16.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mesonbuild') 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'] -- cgit v1.1