From 23ef6450fa6ba088ee82a1f3a82680cc998ba4c3 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sun, 7 Mar 2021 00:41:17 +0100 Subject: Travis ARM64: set NPROC=4 to avoid the autodetected 32 to blow out RAM --- travis/install.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'travis') diff --git a/travis/install.sh b/travis/install.sh index a39323eb..ea271d92 100755 --- a/travis/install.sh +++ b/travis/install.sh @@ -3,13 +3,15 @@ set -e UNAME="$(uname)" || UNAME="" -if test "${UNAME}" = "Linux" ; then - NPROC=$(nproc); -elif test "${UNAME}" = "Darwin" ; then - NPROC=$(sysctl -n hw.ncpu); -fi if test "x${NPROC}" = "x"; then - NPROC=2; + if test "${UNAME}" = "Linux" ; then + NPROC=$(nproc); + elif test "${UNAME}" = "Darwin" ; then + NPROC=$(sysctl -n hw.ncpu); + fi + if test "x${NPROC}" = "x"; then + NPROC=2; + fi fi echo "NPROC=${NPROC}" export MAKEFLAGS="-j ${NPROC}" -- cgit v1.2.3