From 489e0472a03a7a7a4435fc6d8617d7ba119f5ff9 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 5 Dec 2009 19:46:24 +0000 Subject: [PATCH] Allow overriding the number of build jobs --- build-scripts/fatbuild.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-scripts/fatbuild.sh b/build-scripts/fatbuild.sh index b75e2906f..52ba59836 100755 --- a/build-scripts/fatbuild.sh +++ b/build-scripts/fatbuild.sh @@ -4,7 +4,9 @@ # Number of CPUs (for make -j) NCPU=`sysctl -n hw.ncpu` -NJOB=$NCPU +if test x$NJOB = x; then + NJOB=$NCPU +fi # Generic, cross-platform CFLAGS you always want go here. CFLAGS="-O3 -g -pipe"