From ebfb2b6db1a75f28c7ea055ca7d4862adcacecbe Mon Sep 17 00:00:00 2001 From: "L. E. Segovia" Date: Tue, 9 Jul 2024 19:02:09 -0300 Subject: [PATCH] nasm: Add -mms-bitfields to the list of ignored flags Fixes building Nasm objects with Meson's native language support, when depending against a library that exports that flag, like Glib. (cherry picked from commit 07777c725cf82a5ef4bb5c6d33fdcdbe3d688464) --- mesonbuild/compilers/asm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py index d04fbd2938fb..c5e552165227 100644 --- a/mesonbuild/compilers/asm.py +++ b/mesonbuild/compilers/asm.py @@ -73,7 +73,7 @@ def get_output_args(self, outputname: str) -> T.List[str]: def unix_args_to_native(self, args: T.List[str]) -> T.List[str]: outargs: T.List[str] = [] for arg in args: - if arg == '-pthread': + if arg in {'-mms-bitfields', '-pthread'}: continue outargs.append(arg) return outargs