n2 is intended to be able to build any project that Ninja can load. Here is a comparison of things n2 does worse and better than Ninja.
Here are some things n2 improves over Ninja:
-d trace
generates a performance trace that can be visualized by Chrome's about:tracing
or alternatives (speedscope, perfetto).console
pool. n2 currently just treats console
as an ordinary pool of depth 1, and only shows console output after the task completes. In practice this means commands that print progress when run currently show nothing until they're complete.subninja
is only partially implemented.-l
, load average throttling-n
, dry runMost of -d
(debugging), -t
(tools).
No -w
(warnings).