From e6912b41eeaa7b74e8c6d6991cd0acedbbcdafaa Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 4 Nov 2014 12:56:13 +0100 Subject: [PATCH] Made build script adapt to number of cores available. --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 393d4c7..febc945 100755 --- a/build.sh +++ b/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