feat: added control for multiple cores

This commit is contained in:
2026-04-27 00:53:54 +02:00
parent 0cd1e933f8
commit 54a3c90079
3 changed files with 12 additions and 0 deletions
+5
View File
@@ -31,6 +31,11 @@ find . -maxdepth 1 -name '*.pkg.tar.zst' -delete
find . -maxdepth 1 -name '*.pkg.tar.zst.sig' -delete
# Build
# Use all available cores. MAKEFLAGS is respected by makepkg and passed
# through to cmake/ninja. NPROC can be overridden via the environment.
nproc="${NPROC:-$(nproc)}"
export MAKEFLAGS="-j${nproc}"
log "Building with ${nproc} cores"
log "Running makepkg in ${SRC_DIR}"
# --syncdeps : install missing makedepends automatically
# --noconfirm : do not ask for confirmations