aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2021-06-08 22:21:48 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-06-09 09:46:37 +0200
commit9c40b33cf6a0425a8452fa34dc7b4101e29d0319 (patch)
treec20899a3315bd971fbcb5dcde48c89316566d78c /mesonbuild/compilers/compilers.py
parent2263a84d0796ffe93c3dc33502dc13412fbd4afe (diff)
downloadmeson-9c40b33cf6a0425a8452fa34dc7b4101e29d0319.zip
meson-9c40b33cf6a0425a8452fa34dc7b4101e29d0319.tar.gz
meson-9c40b33cf6a0425a8452fa34dc7b4101e29d0319.tar.bz2
compilers: Fix missing functions in Compiler base class
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index cdb9f1c..19288eb 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -586,6 +586,9 @@ class Compiler(metaclass=abc.ABCMeta):
def get_linker_output_args(self, outputname: str) -> T.List[str]:
return self.linker.get_output_args(outputname)
+ def get_linker_search_args(self, dirname: str) -> T.List[str]:
+ return self.linker.get_search_args(dirname)
+
def get_builtin_define(self, define: str) -> T.Optional[str]:
raise EnvironmentException('%s does not support get_builtin_define.' % self.id)
@@ -1051,6 +1054,22 @@ class Compiler(metaclass=abc.ABCMeta):
elf_class: T.Optional[int] = None) -> T.List[str]:
return []
+ def get_return_value(self,
+ fname: str,
+ rtype: str,
+ prefix: str,
+ env: 'Environment',
+ extra_args: T.Optional[T.List[str]],
+ dependencies: T.Optional[T.List['Dependency']]) -> T.Union[str, int]:
+ raise EnvironmentException(f'{self.id} does not support get_return_value')
+
+ def find_framework(self,
+ name: str,
+ env: 'Environment',
+ extra_dirs: T.List[str],
+ allow_system: bool = True) -> T.Optional[T.List[str]]:
+ raise EnvironmentException(f'{self.id} does not support find_framework')
+
def find_framework_paths(self, env: 'Environment') -> T.List[str]:
raise EnvironmentException(f'{self.id} does not support find_framework_paths')