From 5b98cd36cd680d140cf7a63760894c2ca5dd7aa3 Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 18 Apr 2016 18:41:16 +1200 Subject: [PATCH] build: parallel $numcpus instead of hardcoding 4 --- rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebuild.sh b/rebuild.sh index 3370afb..d0074e1 100644 --- a/rebuild.sh +++ b/rebuild.sh @@ -1,7 +1,7 @@ #!/bin/bash set -eu -THREADS=4 +THREADS=$(cat /proc/cpuinfo | grep '^processor' | wc -l) buildsite() {