From 70286a93b00868d705647dcbfbd82ab0822040e8 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 14 Feb 2023 12:15:40 +0000 Subject: asm: Use more backward-compatible invocation syntax for nasm 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: https://github.com/netwide-assembler/nasm/commit/3475462e Resolves: https://github.com/mesonbuild/meson/issues/11395 Signed-off-by: Simon McVittie --- mesonbuild/compilers/asm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/compilers/asm.py') diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py index 231cabc..9a95599 100644 --- a/mesonbuild/compilers/asm.py +++ b/mesonbuild/compilers/asm.py @@ -69,7 +69,7 @@ class NasmCompiler(Compiler): 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'}: -- cgit v1.1