scripts: Restore some of the parallism in "all" builds
The use of min/max should not have been switched, and instead of forcing at least "-j2" for builds, it is enforcing no more than two jobs in parallel. This has drastically reduced the parallelism of the builds. Change this to use "max" as intended so that we do make use of available CPUs, using at least two. Change-Id: Ifad0c98ef0ce56fc6c2368321a6cfd763e81b370 Signed-off-by: David Brown <davidb@codeaurora.org>
This commit is contained in:
parent
67ce3a92da
commit
a4d30a721f
|
@ -327,7 +327,7 @@ def build_many(targets):
|
|||
# parallel builds tends to use up available memory rather quickly.
|
||||
parallel = 2
|
||||
if all_options.jobs and all_options.jobs > 1:
|
||||
j = min(all_options.jobs / parallel, 2)
|
||||
j = max(all_options.jobs / parallel, 2)
|
||||
make_command.append("-j" + str(j))
|
||||
|
||||
tracker = BuildTracker(parallel)
|
||||
|
|
Loading…
Reference in New Issue