diff build-scripts/fatbuild.sh @ 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 10a12f77f597
children 72a1c4dda07c
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"