ninja-build / ninja

a small build system with a focus on speed
https://ninja-build.org/
Apache License 2.0
11.24k stars 1.6k forks source link

Allow setting the priority of spawned processes #2176

Open clemenswasser opened 2 years ago

clemenswasser commented 2 years ago

This is a feature request for allowing the user to set the priority/niceness of the processes spawned by ninja. The idea comes from the recently added "Low Priority Builds" feature of MSBuild which they described in a Blog Post. At least for Windows it should be pretty easy to add one of the priority classes to the process_flags of the CreateProcessA call in subprocess-win32.cc

jonesmz commented 2 years ago

Related : https://github.com/ninja-build/ninja/issues/1820