diff options
author | Stelios Tsampas | 2024-01-26 16:10:24 +0200 |
---|---|---|
committer | Stelios Tsampas | 2024-01-26 16:10:24 +0200 |
commit | 9e58a3e8a00d5e7d9a3cbae721eaa54a6310c77f (patch) | |
tree | 639a0d7d01c4ce820a9b34a8f7787a52c26b9d0c /PKGBUILD | |
parent | 5cbe7ee027785aa58f97ea2ab3938d83c7def073 (diff) | |
download | aur-9e58a3e8a00d5e7d9a3cbae721eaa54a6310c77f.tar.gz |
[dxvk-mingw] Re-enable optimizations but disable avx for x64
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2,7 +2,7 @@ pkgname=dxvk-mingw pkgver=2.3 -pkgrel=3 +pkgrel=4 pkgdesc='Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine, MingW version' arch=('x86_64') url="https://github.com/doitsujin/dxvk" @@ -34,9 +34,9 @@ prepare() { # If you want the "best" possible optimizations for your system you can use # `-march=native` and remove the `-mtune=core-avx2` option. -# local -a split=($CFLAGS) -# local -A flags -# for opt in "${split[@]}"; do flags["${opt%%=*}"]="${opt##*=}"; done + local -a split=($CFLAGS) + local -A flags + for opt in "${split[@]}"; do flags["${opt%%=*}"]="${opt##*=}"; done local march="${flags["-march"]:-nocona}" local mtune="${flags["-mtune"]:-core-avx2}" @@ -61,8 +61,8 @@ prepare() { # Relevant Wine issues # https://bugs.winehq.org/show_bug.cgi?id=45289 # https://bugs.winehq.org/show_bug.cgi?id=43516 - CFLAGS+=" -mno-avx2" - CXXFLAGS+=" -mno-avx2" + CFLAGS+=" -mno-avx2 -mno-avx" + CXXFLAGS+=" -mno-avx2 -mno-avx" local cross_ldflags="$LDFLAGS" |