summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. E. Segovia <amy@amyspark.me>2024-07-09 19:02:09 -0300
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2024-07-10 10:58:48 +0530
commit07777c725cf82a5ef4bb5c6d33fdcdbe3d688464 (patch)
treef99bd46b7a60064073f950b78f930193daa64629
parent5d417edd64093fd6f5c0df563f23b9586c93e1e3 (diff)
downloadmeson-07777c725cf82a5ef4bb5c6d33fdcdbe3d688464.tar.gz
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.
-rw-r--r--mesonbuild/compilers/asm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index bfe436b0b..e25f18d67 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -75,7 +75,7 @@ class NasmCompiler(Compiler):
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