diff options
author | Simon McVittie <smcv@collabora.com> | 2023-02-14 12:15:40 +0000 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-02-14 08:34:57 -0500 |
commit | 70286a93b00868d705647dcbfbd82ab0822040e8 (patch) | |
tree | 6c33cd1420bb370e506040ebae77c7ad07334333 | |
parent | 4d7a72b6db181f09034051ef703e151607784ea8 (diff) | |
download | meson-70286a93b00868d705647dcbfbd82ab0822040e8.zip meson-70286a93b00868d705647dcbfbd82ab0822040e8.tar.gz meson-70286a93b00868d705647dcbfbd82ab0822040e8.tar.bz2 |
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 <smcv@collabora.com>
-rw-r--r-- | mesonbuild/compilers/asm.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'}: |