# HG changeset patch # User Sam Lantinga # Date 1260042384 0 # Node ID 5668e43c256bf842ea97a14c18aeec25a45c9cb6 # Parent d38acda781ae01831838502b6b4e774c15b2d285 Allow overriding the number of build jobs diff -r d38acda781ae -r 5668e43c256b build-scripts/fatbuild.sh --- 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"