mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
Build on Mac OS X with reported number of CPU cores.
This commit is contained in:
parent
1a2ccb8f50
commit
986140db64
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user