diff options
author | L. E. Segovia <amy@amyspark.me> | 2023-04-24 20:58:59 -0300 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2023-04-24 21:09:15 -0400 |
commit | e1de1bae0997f38370bb9cae3f158af9ae3f14ac (patch) | |
tree | 0375d664e37b6571c5375c2dceb1367f3d4f2438 | |
parent | 70e2da07737c6ed474ab5990ac32c3d4f7e88bd2 (diff) | |
download | meson-e1de1bae0997f38370bb9cae3f158af9ae3f14ac.zip meson-e1de1bae0997f38370bb9cae3f158af9ae3f14ac.tar.gz meson-e1de1bae0997f38370bb9cae3f158af9ae3f14ac.tar.bz2 |
yasm: Fix usage of incompatible optimization flags
Fixes #11726
-rw-r--r-- | mesonbuild/compilers/asm.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py index f3b8604..a156a17 100644 --- a/mesonbuild/compilers/asm.py +++ b/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) |