On Sun, 9 Apr 2023, ooga@e.email wrote:
2023-04-08T20:51:59Z Daryl F <wyatt@prairieturtle.ca>:
After scouring the web for a solution to ninja overrunning my meager RAM when compiling qtwebengine I discovered there is no easy one. People have been looking for a solution for a long time.
Edit your pkgmk.conf to have something like this:
[ "$name" = "qtwebengine" ] && JOBS=4 || JOBS=8 export JOBS
Pkgfile and pkgmk.conf are still bash scripts, sharing the same "namespace" (they are "sourced-in" by pkgmk in this order).
PS. Memory consumption is larger when linking objects. The llvm project has an option to specify the number of parallel link jobs.
That is a good way to make the wrapper only affect qtwebengine builds but ninja does not respect the JOBS environment variable so the wrapper is still required.