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:
Tom Reynolds
2013-05-15 04:00:36 +00:00
parent c10bb9f10e
commit a6e6ab8f53
6 changed files with 8 additions and 9 deletions

View File

@@ -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}