diff options
author | Dan Hasting | 2017-07-19 13:54:06 -0400 |
---|---|---|
committer | Dan Hasting | 2017-07-19 13:54:06 -0400 |
commit | 785af7d504a7767497dcb8e5576a26966ac5b060 (patch) | |
tree | 6b65679beafed1b4ff0bbd399ef29517ceb34564 | |
parent | 99646b0b7509eeb596ed87d7be852b4fe92909f6 (diff) | |
download | aur-785af7d504a7767497dcb8e5576a26966ac5b060.tar.gz |
Detect CPU instructions via /proc/cpuinfo
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 12 insertions, 4 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Wed May 31 03:35:29 UTC 2017 +# Wed Jul 19 17:53:35 UTC 2017 pkgbase = cen64-git pkgdesc = Cycle-accurate Nintendo 64 emulator - pkgver = r764.62f0f9b + pkgver = r768.b0af355 pkgrel = 1 epoch = 1 url = http://www.cen64.com/ @@ -1,5 +1,5 @@ pkgname=cen64-git -pkgver=r764.62f0f9b +pkgver=r768.b0af355 pkgrel=1 epoch=1 pkgdesc="Cycle-accurate Nintendo 64 emulator" @@ -24,7 +24,15 @@ prepare() { build() { # Change to whichever matches your CPU architecture # Select between "SSE2", "SSSE3", "SSE4.1", "AVX" - _arch_support="SSSE3" + if [[ `cat /proc/cpuinfo | grep avx | wc -l` -gt 0 ]]; then + _arch_support="AVX" + elif [[ `cat /proc/cpuinfo | grep sse4_1 | wc -l` -gt 0 ]]; then + _arch_support="SSE4.1" + elif [[ `cat /proc/cpuinfo | grep ssse3 | wc -l` -gt 0 ]]; then + _arch_support="SSSE3" + else + _arch_support="SSE2" + fi # Enable busy-wait-detection for better performance _detect_wait_loops="ON" |