changeset 3524:5668e43c256b

Allow overriding the number of build jobs
author Sam Lantinga <slouken@libsdl.org>
date Sat, 05 Dec 2009 19:46:24 +0000
parents d38acda781ae
children 455a6c47d2c6
files build-scripts/fatbuild.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/build-scripts/fatbuild.sh	Sat Dec 05 05:13:17 2009 +0000
+++ b/build-scripts/fatbuild.sh	Sat Dec 05 19:46:24 2009 +0000
@@ -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"