Edit /etc/makepkg.conf replace in CFLAGS and CXXFLAGS to use the native one -march=x86-64 -mtune=generic to -march=native speed up build by set multiple threads MAKEFLAGS="-j$(nproc)"