From 48a181866f9cb574d13f59f8d94983a1bc2f88ed Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 17 Sep 2020 12:02:07 -0700 Subject: compilers/mixins/clang: Make type safe --- mesonbuild/compilers/compilers.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mesonbuild/compilers/compilers.py') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index edd1c5d..2f26002 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1032,6 +1032,14 @@ class Compiler(metaclass=abc.ABCMeta): def attribute_check_func(self, name: str) -> str: raise EnvironmentException('{} does not support attribute checks'.format(self.id)) + def get_pch_suffix(self) -> str: + raise EnvironmentException('{} does not support pre compiled headers'.format(self.id)) + + def get_pch_name(self, name: str) -> str: + raise EnvironmentException('{} does not support pre compiled headers'.format(self.id)) + + def get_pch_use_args(self, pch_dir: str, header: str) -> T.List[str]: + raise EnvironmentException('{} does not support pre compiled headers'.format(self.id)) def get_args_from_envvars(lang: str, -- cgit v1.1