mirror of
https://github.com/glest/glest-source.git
synced 2025-09-09 15:30:41 +02:00
Whoopsie, now with better CPU detection and fallback
This commit is contained in:
@@ -119,7 +119,8 @@ CXX=/usr/bin/g++
|
||||
|
||||
OSTYPE=`uname -s`
|
||||
if [ "$OSTYPE" = "Linux" ]; then
|
||||
NCPU=`nproc`
|
||||
NCPU=`lscpu -p | grep -cv '^#'`
|
||||
if [ "$NUMCORES" = '' ]; then NUMCORES=1; fi
|
||||
elif [ "$OSTYPE" = "Darwin" ]; then
|
||||
NCPU=`sysctl -n hw.ncpu`
|
||||
elif [ "$OSTYPE" = "SunOS" ]; then
|
||||
|
Reference in New Issue
Block a user