Detect the number of CPUs under FreeBSD too

This is under done using exactly the same command as under macOS,
unsurprisingly.
This commit is contained in:
Vadim Zeitlin 2022-06-23 15:26:36 +01:00
parent ae0e4c6942
commit a1f29366f0

View File

@ -5,7 +5,7 @@ case `uname` in
wxPROC_COUNT=`nproc` wxPROC_COUNT=`nproc`
;; ;;
Darwin) Darwin|FreeBSD)
wxPROC_COUNT=`sysctl -n hw.ncpu` wxPROC_COUNT=`sysctl -n hw.ncpu`
;; ;;