[From Sam]
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Apr 2006 05:46:07 +0000
changeset 17447f39af143e38
parent 1743 70a4d819e95e
child 1745 741dc4e89f3a
[From Sam]
> BTW, when setting up parallel make, I usually use # cpus + 1, so a compile is
> running while disk access is going for another.

[From Ryan]
My experience is that this works well on Linux, but is actually slower on
PowerPC Mac OS X...not sure if that's an architecture issue or a scheduler
issue, though, and haven't tried it on Intel Mac OS X.
build-scripts/fatbuild.sh
     1.1 --- a/build-scripts/fatbuild.sh	Fri Apr 28 05:43:58 2006 +0000
     1.2 +++ b/build-scripts/fatbuild.sh	Fri Apr 28 05:46:07 2006 +0000
     1.3 @@ -4,7 +4,8 @@
     1.4  
     1.5  # Number of CPUs (for make -j)
     1.6  NCPU=`sysctl -n hw.ncpu`
     1.7 -NJOB=`expr $NCPU + 1`
     1.8 +NJOB=$NCPU
     1.9 +#NJOB=`expr $NCPU + 1`
    1.10  
    1.11  # Generic, cross-platform CFLAGS you always want go here.
    1.12  CFLAGS="-O3 -g -pipe"