Commit 83dc1a3d authored by gsell's avatar gsell

libpbuild: limit parallel make jobs to 10, unless specified on cmd line

parent 6ae8ba2e
...@@ -102,6 +102,7 @@ declare -i JOBS=$(pbuild::get_num_cores) ...@@ -102,6 +102,7 @@ declare -i JOBS=$(pbuild::get_num_cores)
pbuild.jobs() { pbuild.jobs() {
if (( $1 == 0 )); then if (( $1 == 0 )); then
JOBS=$(pbuild::get_num_cores) JOBS=$(pbuild::get_num_cores)
(( JOBS > 10 )) && JOBS=10 || :
else else
JOBS="$1" JOBS="$1"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment