Please add the following to build() function to enable native optimizations on x86_64:
GOAMD64=v1
flags=$(grep -o -E 'avx512|avx2|sse4_2' /proc/cpuinfo || true)
if [[ $flags == *avx512* ]]; then
GOAMD64=v4
elif [[ $flags == *avx2* ]]; then
GOAMD64=v3
elif [[ $flags == *sse4_2* ]]; then
GOAMD64=v2
fi
export GOAMD64
Pinned Comments
sukanka commented on 2023-02-15 01:05 (UTC)
If you want use tun mode, add the following pacman hook.