Reduce the number of parallel compiles. am: 3fbd303d1c

am: 86e955aefa

Change-Id: I1371497279de01651a16af9de0031452f633935b
This commit is contained in:
Joel Galenson 2019-03-04 17:37:33 -08:00 committed by android-build-merger
commit a1f90819ac

View file

@ -54,7 +54,7 @@ done
# This heuristic could probably be improved.
cores=$(nproc --all)
num_targets=$(echo "$targets" | sed 's/ /\n/g' | wc -l)
parallel_jobs=$(expr $cores / 2)
parallel_jobs=$(expr $cores / 4)
if [[ $num_targets -lt $parallel_jobs ]]; then
export mmma_jobs=$(expr $cores / $num_targets \* 2)
else