I’ve a project with about 3500 targets, building with ninja in parallel on machines with between 4 and 8 cores.
One of these targets takes quite a long time, and that slows the entire build, since, for whatever reason, it usually ends up among the last of the targets to run.
It has the same list of dependencies as about 2500 other targets, so I would like to pull it forward, so that it will be among the first of those 2500 targets to run. It can consume a core for a long time while the other 2499 targets run on the remaining cores.
Note that naming it as a dependency to other targets so it is forced to run first is a BAD idea since it will block the other 2499 targets from running until it completes.
I’m not sure how to BEST do this…
Your help is appreciated!