mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-03 15:47:23 -04:00
Fix PKGBUILD x86_64 feature level check
This commit is contained in:
@@ -25,11 +25,11 @@ build() {
|
|||||||
case \$CARCH in
|
case \$CARCH in
|
||||||
'x86_64')
|
'x86_64')
|
||||||
lscpuOutput=\$(lscpu | grep Flags)
|
lscpuOutput=\$(lscpu | grep Flags)
|
||||||
if [ -z \"\$(echo \$lscpuOutput | grep avx512f)\" ]; then
|
if [ ! -z \"\$(echo \$lscpuOutput | grep avx512f)\" ]; then
|
||||||
export GOAMD64=v4
|
export GOAMD64=v4
|
||||||
elif [ -z \"\$(echo \$lscpuOutput | grep avx2)\" ]; then
|
elif [ ! -z \"\$(echo \$lscpuOutput | grep avx2)\" ]; then
|
||||||
export GOAMD64=v3
|
export GOAMD64=v3
|
||||||
elif [ -z \"\$(echo \$lscpuOutput | grep sse4_2)\" ]; then
|
elif [ ! -z \"\$(echo \$lscpuOutput | grep sse4_2)\" ]; then
|
||||||
export GOAMD64=v2
|
export GOAMD64=v2
|
||||||
else
|
else
|
||||||
export GOAMD64=v1
|
export GOAMD64=v1
|
||||||
|
|||||||
Reference in New Issue
Block a user