From 07777c725cf82a5ef4bb5c6d33fdcdbe3d688464 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. --- 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 bfe436b0b256..e25f18d6746d 100644 --- a/mesonbuild/compilers/asm.py +++ b/mesonbuild/compilers/asm.py @@ -75,7 +75,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