aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2022-09-30 14:46:10 -0400
committerEli Schwartz <eschwartz93@gmail.com>2022-10-25 17:24:56 -0400
commit2961adb8c89fa8ccfbc8e24cd9f1115bd3abeee1 (patch)
treea52ebb2666ba207caf94ca38b4e111390a6124e1 /mesonbuild/compilers/compilers.py
parentb0e2d00acd67e13ac3478cb7f00a080d702bb8d7 (diff)
downloadmeson-2961adb8c89fa8ccfbc8e24cd9f1115bd3abeee1.zip
meson-2961adb8c89fa8ccfbc8e24cd9f1115bd3abeee1.tar.gz
meson-2961adb8c89fa8ccfbc8e24cd9f1115bd3abeee1.tar.bz2
Compilers: Keep ccache and exelist separated
Only combine them in the Compiler base class, this will make easier to run compiler without ccache.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py4
1 files changed, 2 insertions, 2 deletions
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]