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/asm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers/asm.py') diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py index 1bcae2d..83b6ea6 100644 --- a/mesonbuild/compilers/asm.py +++ b/mesonbuild/compilers/asm.py @@ -79,9 +79,9 @@ class NasmCompiler(Compiler): class YasmCompiler(NasmCompiler): id = 'yasm' - def get_exelist(self) -> T.List[str]: + def get_exelist(self, ccache: bool = True) -> T.List[str]: # Wrap yasm executable with an internal script that will write depfile. - exelist = super().get_exelist() + exelist = super().get_exelist(ccache) return get_meson_command() + ['--internal', 'yasm'] + exelist def get_debug_args(self, is_debug: bool) -> T.List[str]: -- cgit v1.1