mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-binutils.git
synced 2025-01-05 08:23:37 +01:00
detect core number with sysctl on Darwin
This commit is contained in:
parent
0456a420af
commit
2fec1bf08b
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…
Reference in a new issue