[修改] 自动计算CPU核心数,规避android编时线程过多可能导致的异常
This commit is contained in:
2
build.sh
2
build.sh
@ -29,7 +29,7 @@ BUILD_PACKING=false
|
|||||||
BUILD_VARIANT=`get_build_var TARGET_BUILD_VARIANT`
|
BUILD_VARIANT=`get_build_var TARGET_BUILD_VARIANT`
|
||||||
KERNEL_DTS=""
|
KERNEL_DTS=""
|
||||||
BUILD_VERSION=""
|
BUILD_VERSION=""
|
||||||
BUILD_JOBS=56
|
BUILD_JOBS=`cat /proc/cpuinfo |grep "^processor" |wc -l`
|
||||||
|
|
||||||
# check pass argument
|
# check pass argument
|
||||||
while getopts "UCKABpouv:d:V:J:" arg
|
while getopts "UCKABpouv:d:V:J:" arg
|
||||||
|
|||||||
Reference in New Issue
Block a user