ApolloTeam-dev/ApolloOS

Build script fails to limit number of parallel make jobs.

Closed this issue · 0 comments

The script rebuild_all.sh has a comment saying that it does not always work to build with more than 8 parallel jobs.
It then detects the number of threads available in the system’s CPU and, if it is greater than 8, tries to limit it to 8 but it fails to do so.

Current:

##############################################
# Rebuilding all
# CPU Count: 32
# Rebuilding with 32 parallel tasks
##############################################

Correct:

##############################################
# Rebuilding all
# CPU Count: 32
# Rebuilding with 8 parallel tasks
##############################################