From e50b17396ab410e95a8773ef1da7021044f33600 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 18 Feb 2022 08:57:22 +0100 Subject: [PATCH] detect core number with sysctl on Darwin --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 2b4c356..08b9eda 100755 --- a/build.sh +++ b/build.sh @@ -7,7 +7,7 @@ source util.sh cd build # Number of processor cores -if [[ $(uname) == "OpenBSD" ]]; then +if [[ $(uname) == "OpenBSD" || $(uname) == "Darwin" ]]; then cores=$(sysctl -n hw.ncpu) else cores=$(nproc)