ccache
/etc/makepkg.conf
, uncomment ccache
~/.bashrc
export PATH="/usr/lib/ccache/bin/:$PATH"
export CCACHE_DIR=/tmp/ccache` to `~/.bashrc`
In /etc/makepkg.conf
do following changes:
# Compile for only native arch
CFLAGS="-march=native -O2 -pipe -fno-plt"
CXXFLAGS="${CFLAGS}"
# Use all CPU cores
MAKEFLAGS="-j$(nproc)"
# Use ccache
BUILDENV=(!distcc color ccache check !sign)
# Use /tmp (mount to RAM first)
BUILDDIR=/tmp/makepkg
# Do not use compression
COMPRESSGZ=(cat)
COMPRESSBZ2=(cat)
COMPRESSXZ=(cat)
COMPRESSLRZ=(cat)
COMPRESSLZO=(cat)
COMPRESSZ=(cat)
In ~/.config/pikaur.conf
update following settings: