infra/pkg-golang: enforce number of parallel jobs
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 25 Nov 2018 09:19:48 +0000 (10:19 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 29 Nov 2018 20:21:36 +0000 (21:21 +0100)
commit5af65f65570de0d5cdd704fa120a80d12a51c1ae
tree1561fb235943b81ddc27ece915a1060a9301c4ec
parent76cf905c7bbded4a0eaf48da27b475ab51fc60d9
infra/pkg-golang: enforce number of parallel jobs

By default, the go compiler will spawn as many jobs as there are CPUs
available, thus possibily over-shooting the limits set by the user.

Make it abide by the user's wish, and specify the number of jobs allowed
to run.

We can do so without fear of a package failing to build in parallel,
because they were already all building in parallel, as that is the
default for the go compiler.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/pkg-golang.mk