From 2961adb8c89fa8ccfbc8e24cd9f1115bd3abeee1 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 30 Sep 2022 14:46:10 -0400 Subject: Compilers: Keep ccache and exelist separated Only combine them in the Compiler base class, this will make easier to run compiler without ccache. --- mesonbuild/compilers/compilers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers/compilers.py') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 50a2f4e..bcd5820 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -498,11 +498,11 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): warn_args: T.Dict[str, T.List[str]] mode: str = 'COMPILER' - def __init__(self, exelist: T.List[str], version: str, + def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str, for_machine: MachineChoice, info: 'MachineInfo', linker: T.Optional['DynamicLinker'] = None, full_version: T.Optional[str] = None, is_cross: bool = False): - self.exelist = exelist + self.exelist = ccache + exelist # In case it's been overridden by a child class already if not hasattr(self, 'file_suffixes'): self.file_suffixes = lang_suffixes[self.language] -- cgit v1.1