Made build script adapt to number of cores available.

This commit is contained in:
Faerbit 2014-11-04 12:56:13 +01:00
parent b74534c62a
commit e6912b41ee

View File

@ -1,6 +1,7 @@
#!/bin/bash
currentDir=$(pwd)
threads=$(($(nproc)+1))
#building bullet
@ -8,7 +9,7 @@ cd extern/bullet/
mkdir -p build
cd build
cmake ..
make -j5
make -j$threads
cd $currentDir
@ -17,4 +18,4 @@ cd $currentDir
mkdir -p build
cd build
cmake ..
make -j5
make -j$threads