snesrev / zelda3

Home Page:https://discord.gg/AJJbJAzNNJ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nproc not a part of macOS

CyberSkull opened this issue · comments

commented

Describe your bug here. And how to reproduce it.

nproc isn't a tool on macOS. Instead, sysctl should be used instead to query the number of processors (it is available on Linux & macOS).

The correct make argument should be something like this:

make -j $(sysctl -n hw.logicalcpu)

-n only shows the value of the key.
hw.logicalcpu_max total number of logical CPUs
hw.logicalcpu currently available number of logical CPUs

See also sysctl(3).

What is your build target?

Mac