mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc.git
synced 2025-05-31 07:55:14 +02:00
detect core number with sysctl on Darwin
This commit is contained in:
parent
b9b571d73c
commit
e50b17396a
1 changed files with 1 additions and 1 deletions
2
build.sh
2
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue