diff options
author | bartus | 2021-08-12 16:49:31 +0200 |
---|---|---|
committer | bartus | 2021-08-12 16:49:31 +0200 |
commit | 13b2e56287378347ccdc3f1f1fc35cd4991d084c (patch) | |
tree | 8730011beef1b6d6ed0d4cbc42fa2322363bcd84 | |
parent | db7fc4dce2bd9294306b84ced35430ea2227485f (diff) | |
download | aur-13b2e56287378347ccdc3f1f1fc35cd4991d084c.tar.gz |
Fix CPU extension detection
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -65,10 +65,10 @@ CMAKE_FLAGS=( -DWITH_EMBREE=ON -DPYTHON3_INCLUDE_DIR="/usr/include/python${_pyver}" -Wno-dev ) - grep -q avx /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_AVX=ON) - grep -q avx2 /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_AVX2=ON) - grep -q f16c /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_F16C=ON) - grep -q sse4_2 /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_SSE42=ON) + grep -qw avx /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_AVX=ON) + grep -qw avx2 /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_AVX2=ON) + grep -qw f16c /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_F16C=ON) + grep -qw sse4_2 /proc/cpuinfo && CMAKE_FLAGS+=(-DUSE_SSE42=ON) cmake "${CMAKE_FLAGS[@]}" -S "${srcdir}/${pkgname}" -B build -G Ninja # shellcheck disable=SC2086 # allow MAKEFLAGS to carry multiple flags |