mirror of
https://github.com/glest/glest-source.git
synced 2025-10-03 19:01:53 +02:00
Use 'nproc' command instead of /proc/cpuinfo (doesn't work on armv5tel) to determine # of cores (lscpu can be another option)
This commit is contained in:
@@ -11,7 +11,7 @@ cd codeblocks
|
||||
if [ -f 'CMakeCache.txt' ]; then rm -f 'CMakeCache.txt'; fi
|
||||
|
||||
LANG=C
|
||||
NUMCORES=`cat /proc/cpuinfo | grep -cE '^processor'`
|
||||
NUMCORES=`nproc`
|
||||
|
||||
# This is for regular developers and used by our installer
|
||||
cmake -G"CodeBlocks - Unix Makefiles" -DCMAKE_INSTALL_PREFIX= -DWANT_STATIC_LIBS=ON -DCMAKE_ECLIPSE_MAKE_ARGUMENTS=-j$NUMCORES ${CURRENTDIR}
|
||||
|
Reference in New Issue
Block a user