Page 1 of 1

Limit cores for ninja in automate-git.py

PostPosted: Tue Nov 30, 2021 12:11 pm
by HarmlessDave
It would be nice to have a _DEFINES flag for automate-git.py to limit the number of CPU cores used by ninja.

For building on a workstation, that allows doing a build in the background while keeping the machine available for other work. For systems with intel CPUs it can keep the process from using high power levels for long periods that might strain the cooling system.

Note: this can be done by manually editing the .py script to change the command = "ninja " line to add for example " -j 4 " but having support in the script would be better for automated workflows.