yasm: Fix usage of incompatible optimization flags

Fixes #11726
pull/11672/head
L. E. Segovia 2 years ago committed by Xavier Claessens
parent 70e2da0773
commit e1de1bae09
  1. 4
      mesonbuild/compilers/asm.py

@ -149,6 +149,10 @@ class NasmCompiler(Compiler):
class YasmCompiler(NasmCompiler):
id = 'yasm'
def get_optimization_args(self, optimization_level: str) -> T.List[str]:
# Yasm is incompatible with Nasm optimization flags.
return []
def get_exelist(self, ccache: bool = True) -> T.List[str]:
# Wrap yasm executable with an internal script that will write depfile.
exelist = super().get_exelist(ccache)

Loading…
Cancel
Save