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
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user