diff --git a/Sources/build-mac.sh b/Sources/build-mac.sh index aeebc91..3fd97e3 100755 --- a/Sources/build-mac.sh +++ b/Sources/build-mac.sh @@ -1,5 +1,8 @@ #!/bin/bash +NCPU=`sysctl -n hw.ncpu` +echo "Will build with 'make -j$NCPU' ... please edit this script if incorrect." + set -e set -x @@ -7,5 +10,5 @@ rm -rf cmake-build mkdir $_ cd $_ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_OSX_ARCHITECTURES=i386 .. -make -j8 +make -j$NCPU