From 18868bd0f323f59f3e562d3116861bc37b265398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 18 Jul 2024 18:16:29 +0200 Subject: [PATCH] masm-arm: Skip `-D` dependency compile args As the ARM assemblers don't support that switch. --- mesonbuild/compilers/asm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py index 1d1444ab08f0..15881e8ae1c1 100644 --- a/mesonbuild/compilers/asm.py +++ b/mesonbuild/compilers/asm.py @@ -253,6 +253,9 @@ def compute_parameters_with_absolute_paths(self, parameter_list: T.List[str], def get_crt_compile_args(self, crt_val: str, buildtype: str) -> T.List[str]: return [] + def get_dependency_compile_args(self, dep: 'Dependency') -> T.List[str]: + return [arg for arg in super().get_dependency_compile_args(dep) if not arg.startswith("-D")] + def depfile_for_object(self, objfile: str) -> T.Optional[str]: return None