Skip to content

Commit

Permalink
asm: Use more backward-compatible invocation syntax for nasm
Browse files Browse the repository at this point in the history
Before version 2.14.01, -MD required an output filename argument, with
`-MD outfile` equivalent to later versions' `-MD -MF outfile`. The older
syntax is still supported, and is still listed as the preferred syntax
in documentation.

Reference: netwide-assembler/nasm@3475462e
Resolves: mesonbuild#11395
Signed-off-by: Simon McVittie <smcv@collabora.com>
  • Loading branch information
smcv authored and xclaesse committed Feb 14, 2023
1 parent 4d7a72b commit 70286a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/compilers/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def get_depfile_suffix(self) -> str:
return 'd'

def get_dependency_gen_args(self, outtarget: str, outfile: str) -> T.List[str]:
return ['-MD', '-MQ', outtarget, '-MF', outfile]
return ['-MD', outfile, '-MQ', outtarget]

def sanity_check(self, work_dir: str, environment: 'Environment') -> None:
if self.info.cpu_family not in {'x86', 'x86_64'}:
Expand Down

0 comments on commit 70286a9

Please sign in to comment.