mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 22:15:15 +00:00
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:
@@ -19,7 +19,7 @@ echo "create config.sh"
|
|||||||
cat >>conf/config.sh <<CONFIG_SH
|
cat >>conf/config.sh <<CONFIG_SH
|
||||||
CCOMPILERC=$CCOMPILERC
|
CCOMPILERC=$CCOMPILERC
|
||||||
CCOMPILERCXX=$CCOMPILERCXX
|
CCOMPILERCXX=$CCOMPILERCXX
|
||||||
MTHREADS=4
|
MTHREADS=$(expr $(grep -c ^processor /proc/cpuinfo) + 2)
|
||||||
CWARNINGS=ON
|
CWARNINGS=ON
|
||||||
CDEBUG=OFF
|
CDEBUG=OFF
|
||||||
CTYPE=Release
|
CTYPE=Release
|
||||||
|
|||||||
Reference in New Issue
Block a user