aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/asm.py
diff options
context:
space:
mode:
authorGijs Peskens <gijs@peskens.net>2022-11-14 12:27:27 +0100
committerXavier Claessens <xclaesse@gmail.com>2023-01-18 10:05:33 -0500
commit5a4168c410fea6fce8867ec60e0ba481d7c61866 (patch)
tree6c4d4b3767ac854275fe166b9140cf51704e9710 /mesonbuild/compilers/asm.py
parent7b59a2e3eae965594e907791fc6cbaa9e7e617b0 (diff)
downloadmeson-5a4168c410fea6fce8867ec60e0ba481d7c61866.zip
meson-5a4168c410fea6fce8867ec60e0ba481d7c61866.tar.gz
meson-5a4168c410fea6fce8867ec60e0ba481d7c61866.tar.bz2
Fix nasm when target has threads as added dependency
Diffstat (limited to 'mesonbuild/compilers/asm.py')
-rw-r--r--mesonbuild/compilers/asm.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index 6149313..231cabc 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -47,6 +47,14 @@ class NasmCompiler(Compiler):
def get_output_args(self, outputname: str) -> T.List[str]:
return ['-o', outputname]
+ def unix_args_to_native(self, args: T.List[str]) -> T.List[str]:
+ outargs = []
+ for arg in args:
+ if arg == '-pthread':
+ continue
+ outargs.append(arg)
+ return outargs
+
def get_optimization_args(self, optimization_level: str) -> T.List[str]:
return nasm_optimization_args[optimization_level]