Browse Source

build.sh: max out online cores

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Robert Nelson 3 years ago
parent
commit
aca9248576
1 changed files with 3 additions and 1 deletions
  1. 3 1
      build.sh

+ 3 - 1
build.sh

@@ -1,9 +1,11 @@
 #!/bin/bash
 
+CORES=$(getconf _NPROCESSORS_ONLN)
+
 make clean || true
 make distclean || true
 
 git submodule sync
 git submodule update --recursive --init
 
-make -j4
+make -j${CORES}