From e7f0890cb9a26e2e64e79739c80fddb609d484cf Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 22 Sep 2020 10:54:16 -0700 Subject: compilers: move get_dependency_gen_args to base Compiler So that every subclass doesn't have to reimplement it. Especially since the Gnu implementation moved out of the CCompiler and into the GnuLikeCompiler mixin --- mesonbuild/compilers/compilers.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers/compilers.py') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 578f65446..a66ecdc08 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1062,6 +1062,9 @@ class Compiler(metaclass=abc.ABCMeta): def split_shlib_to_parts(self, fname: str) -> T.Tuple[T.Optional[str], str]: return None, fname + def get_dependency_gen_args(self, outtarget: str, outfile: str) -> T.List[str]: + return [] + def get_args_from_envvars(lang: str, for_machine: MachineChoice, -- cgit v1.2.3