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:
parent
5d4248d171
commit
2fc6528a22
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue