Files
wx_wherigo/libs/wxWidgets-3.3.1/build/tools/proc_count.sh
2026-02-14 09:47:24 +01:00

18 lines
300 B
Bash
Executable File

# This script outputs the number of available processors/cores plus one.
case `uname` in
Linux|MSYS*|MINGW*)
wxPROC_COUNT=`nproc`
;;
Darwin|FreeBSD)
wxPROC_COUNT=`sysctl -n hw.ncpu`
;;
*)
wxPROC_COUNT=0
;;
esac
echo $((wxPROC_COUNT+1))