Compare commits

...

1 Commits

Author SHA1 Message Date
Lephenixnoir e50b17396a
detect core number with sysctl on Darwin 2022-02-18 08:57:22 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -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)