From e94952c598155b9d708f3957f0003086108e8c60 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 4 Jun 2019 12:17:43 -0700 Subject: macOS build parallelism. Macs are slow enough without crippling them further! --- scripts/make.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/make.sh b/scripts/make.sh index bdcfadea..bd550b91 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -12,7 +12,8 @@ source scripts/portability.sh UNSTRIPPED="generated/unstripped/$(basename "$OUTNAME")" # Try to keep one more cc invocation going than we have processors -[ -z "$CPUS" ] && CPUS=$(($(nproc 2>/dev/null)+1)) +[ -z "$CPUS" ] && \ + CPUS=$(($(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null)+1)) # Respond to V= by echoing command lines as well as running them DOTPROG= -- cgit v1.2.3