[Buildroot] [git commit] package/nodejs: fix parallel build further

Peter Korsgaard peter at korsgaard.com
Sat Sep 30 10:35:18 UTC 2023


>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

 > commit: https://git.buildroot.net/buildroot/commit/?id=d574e2a4f440903a0e32de6deb8275b1f385da2e
 > branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

 > Commit 84c24ab1b5a7 (package/nodejs: fix parallel build) made use of
 > BR2_JLEVEL to set the number of jobs nodejs should use instead of using
 > the number of CPUs (+2).

 > However, BR2_JLEVEL can be set to 0 by the user, to let Buildroot detect
 > the number of CPUs (+1), and stores it in PARALLEL_JOBS, and leaves
 > BR2_JLEVEL untouched, so 0.

 > Thus, we can end up spawning a build by passing -j0 to ninja, which it
 > interprets as "no -limit yolo" and does not limit the number oj jobs it
 > spawns, which usually ends up in an OOM somewhere...

 > Fix this by using PARALLEL_JOBS.

 > Reported-by: Cédric & Co
 > Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>

Committed to 2023.02.x and 2023.08.x, thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list