nproc not a part of macOS
CyberSkull opened this issue · comments
Trevor 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