Skip to content

Commit

Permalink
masm-arm: Skip -D dependency compile args
Browse files Browse the repository at this point in the history
As the ARM assemblers don't support that switch.
  • Loading branch information
oleavr committed Jul 18, 2024
1 parent 0bffb0b commit 18868bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesonbuild/compilers/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 18868bd

Please sign in to comment.