ci: build in parallel by default

This commit is contained in:
Sam James 2024-04-10 17:42:23 +01:00 committed by Lasse Collin
parent 65bf7e0a1c
commit 8709407a9e
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ DEST_DIR="$SRC_DIR/../xz_build"
PHASE="all" PHASE="all"
ARTIFACTS_DIR_NAME="output" ARTIFACTS_DIR_NAME="output"
[[ -z ${CPU_COUNT} ]] && { CPU_COUNT=$(nproc 2>/dev/null || sysctl -n hw.ncpu); }
[[ -z ${MAKEFLAGS} ]] && export MAKEFLAGS="-j${CPU_COUNT} -l${CPU_COUNT}"
[[ -z ${CFLAGS} ]] && export CFLAGS="-O2" [[ -z ${CFLAGS} ]] && export CFLAGS="-O2"
################### ###################