summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bettis <jbettis@google.com>2022-07-19 10:20:46 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-20 20:00:31 +0000
commit1a14800b0f4375eec81aaf72c1812248e02e40cc (patch)
treedea7b9d9422959cfd99c6e71ed8bb056e492eafc
parente4996870081fa1de9dc56b752bf31f5692c3d20d (diff)
downloadchrome-ec-1a14800b0f4375eec81aaf72c1812248e02e40cc.tar.gz
ec: Set default jobs to number of processors
In util/compare_build.sh, it runs make -j with no argument by default. Change that to use the current machine's number of processors instead. BRANCH=None BUG=b:239199935 TEST=./util/compare_build.sh -b all Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I700e7bc9b892ca4b928f0d162cfa6cd44f5f7c62 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3773937 Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Tested-by: Jeremy Bettis <jbettis@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
-rwxr-xr-xutil/compare_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/compare_build.sh b/util/compare_build.sh
index c47a951ea8..f5eb2e5f96 100755
--- a/util/compare_build.sh
+++ b/util/compare_build.sh
@@ -50,7 +50,7 @@ DEFINE_string 'ref2' "HEAD^" 'Git reference (commit, branch, etc)'
DEFINE_boolean 'keep' "${FLAGS_FALSE}" \
'Remove the temp directory after comparison.' 'k'
# Integer type can still be passed blank ("")
-DEFINE_integer 'jobs' "-1" 'Number of jobs to pass to make' 'j'
+DEFINE_integer 'jobs' "$(nproc)" 'Number of jobs to pass to make' 'j'
# When compiling both refs for all boards, mem usage was larger than 32GB.
# If you don't have more than 32GB, you probably don't want to build both
# refs at the same time. Use the -o flag.