Mercurial > sdl-ios-xcode
comparison build-scripts/fatbuild.sh @ 1744:7f39af143e38
[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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 28 Apr 2006 05:46:07 +0000 |
parents | 70a4d819e95e |
children | 50e9cca3fe7b |
comparison
equal
deleted
inserted
replaced
1743:70a4d819e95e | 1744:7f39af143e38 |
---|---|
2 # | 2 # |
3 # Build a fat binary on Mac OS X, thanks Ryan! | 3 # Build a fat binary on Mac OS X, thanks Ryan! |
4 | 4 |
5 # Number of CPUs (for make -j) | 5 # Number of CPUs (for make -j) |
6 NCPU=`sysctl -n hw.ncpu` | 6 NCPU=`sysctl -n hw.ncpu` |
7 NJOB=`expr $NCPU + 1` | 7 NJOB=$NCPU |
8 #NJOB=`expr $NCPU + 1` | |
8 | 9 |
9 # Generic, cross-platform CFLAGS you always want go here. | 10 # Generic, cross-platform CFLAGS you always want go here. |
10 CFLAGS="-O3 -g -pipe" | 11 CFLAGS="-O3 -g -pipe" |
11 | 12 |
12 # PowerPC compiler flags (10.2 runtime compatibility) | 13 # PowerPC compiler flags (10.2 runtime compatibility) |