#1253·ninja

ninja jobs explode when nesting.

Author: graphCreated Mar 7, 2017Updated Aug 21, 2026

The default on my machine is 6 jobs. I have nesting going on, and don't have control over all the nested scripts. I was looking for a environment variable to change the default to 1 but all those issues have been closed. Just 2 nests thats 66, I have 3 nests that's 66*6 processes doing high intensity work. This makes my system unusable and slows down overall the entire build.

One idea is to use file locking or inteprocess communication to sync total number of ninja jobs and have a minimum of 1 job per nest to prevent deadlocking.

Just a simple environment variable works too.

Thank you.