initial commit
Signed-off-by: Peter Siegmund <mars3142@noreply.mars3142.dev>
This commit is contained in:
17
libs/wxWidgets-3.3.1/build/tools/proc_count.sh
Executable file
17
libs/wxWidgets-3.3.1/build/tools/proc_count.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
# 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))
|
||||
Reference in New Issue
Block a user