From fab996ae4c71337174757fa5712687dbeea1b71d Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Tue, 7 Jun 2022 09:17:16 +0200 Subject: [PATCH] better if detection Signed-off-by: Toshaan Bharvani --- SPECS/qemu.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SPECS/qemu.spec b/SPECS/qemu.spec index a7ec507..52cc4d6 100755 --- a/SPECS/qemu.spec +++ b/SPECS/qemu.spec @@ -369,11 +369,11 @@ emulatedbuildarch="ppc64-softmmu s390x-softmmu sparc64-softmmu x86_64-softmmu mi --enable-attr --enable-nettle --enable-vhost-scsi --enable-vhost-net --enable-vhost-vsock --enable-vhost-crypto --enable-crypto-afalg \ --enable-linux-aio --enable-vvfat --enable-coroutine-pool --enable-cap-ng --enable-opengl --enable-vhost-vdpa \ --enable-virglrenderer \ -%if "%{cpuarch}" == "x86-64-v3" or "%{cpuarch}" == "x86-64-v4" - --enable-avx2 +%if "%{cpuarch}" == "x86-64-v3" + --enable-avx2 \ %endif %if "%{cpuarch}" == "x86-64-v4" - --enable-avx512f + --enable-avx2 --enable-avx512f \ %endif --enable-vhost-kernel --enable-debug-info --enable-slirp=system -enable-dmg --enable-lzfse --enable-fuse --enable-fuse-lseek \ --enable-curses --enable-vnc --enable-vnc-sasl --enable-vnc-png --enable-vnc-jpeg --enable-curl --enable-fdt --enable-u2f \