Made build script adapt to number of cores available.
This commit is contained in:
parent
b74534c62a
commit
e6912b41ee
5
build.sh
5
build.sh
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
currentDir=$(pwd)
|
currentDir=$(pwd)
|
||||||
|
threads=$(($(nproc)+1))
|
||||||
|
|
||||||
#building bullet
|
#building bullet
|
||||||
|
|
||||||
@ -8,7 +9,7 @@ cd extern/bullet/
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j5
|
make -j$threads
|
||||||
|
|
||||||
cd $currentDir
|
cd $currentDir
|
||||||
|
|
||||||
@ -17,4 +18,4 @@ cd $currentDir
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
cmake ..
|
||||||
make -j5
|
make -j$threads
|
||||||
|
Loading…
Reference in New Issue
Block a user