Fix PKGBUILD x86_64 feature level check

This commit is contained in:
2024-08-06 15:35:51 -04:00
parent 871897b6ce
commit db7e95d4af
+3 -3
View File
@@ -25,11 +25,11 @@ build() {
case \$CARCH in
'x86_64')
lscpuOutput=\$(lscpu | grep Flags)
if [ -z \"\$(echo \$lscpuOutput | grep avx512f)\" ]; then
if [ ! -z \"\$(echo \$lscpuOutput | grep avx512f)\" ]; then
export GOAMD64=v4
elif [ -z \"\$(echo \$lscpuOutput | grep avx2)\" ]; then
elif [ ! -z \"\$(echo \$lscpuOutput | grep avx2)\" ]; then
export GOAMD64=v3
elif [ -z \"\$(echo \$lscpuOutput | grep sse4_2)\" ]; then
elif [ ! -z \"\$(echo \$lscpuOutput | grep sse4_2)\" ]; then
export GOAMD64=v2
else
export GOAMD64=v1