Build on Mac OS X with reported number of CPU cores.

This commit is contained in:
Ryan C. Gordon 2016-04-03 00:00:04 -04:00
parent 1a2ccb8f50
commit 986140db64

View File

@ -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