Skip to content

Commit

Permalink
ci: build in parallel by default
Browse files Browse the repository at this point in the history
  • Loading branch information
thesamesam committed Apr 10, 2024
1 parent 9828e38 commit 5bc1c45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-aux/ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ DEST_DIR="$SRC_DIR/../xz_build"
PHASE="all"
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"

###################
Expand Down

0 comments on commit 5bc1c45

Please sign in to comment.