feat(CI): dynamically calculate thread count for build process (#1510)

Dynamically calculate the thread count for the build process by reading `/proc/cpuinfo` in order to be more independent from the environment.
This commit is contained in:
Stoabrogga
2019-02-22 17:27:57 +01:00
committed by GitHub
parent 5d4248d171
commit 2fc6528a22

View File

@@ -19,7 +19,7 @@ echo "create config.sh"
cat >>conf/config.sh <<CONFIG_SH
CCOMPILERC=$CCOMPILERC
CCOMPILERCXX=$CCOMPILERCXX
MTHREADS=4
MTHREADS=$(expr $(grep -c ^processor /proc/cpuinfo) + 2)
CWARNINGS=ON
CDEBUG=OFF
CTYPE=Release