On 19/05/2021 20.45, Philippe Mathieu-Daudé wrote:
'nproc' is not available on FreeBSD:

   $ JOBS=$(expr $(nproc) + 1)
   bash: line 119: nproc: command not found
   expr: syntax error

Instead, use 'sysctl -n hw.ncpu'.

Could we maybe use "getconf _NPROCESSORS_ONLN" instead? ... that might work on both, Linux and FreeBSD...?

 Thomas


Reply via email to