Guide agents through Ninja as a build executor: diagnosing failures, controlling parallelism, generating from CMake, and understanding the .ninja file format when needed.
The most common use of Ninja is as the build executor for CMake:
| -j N | Parallel jobs (default: CPUs + 2) | | -l N | Don't start new jobs if load average > N | | -k N | Keep going after N failures (default 1) | | -v | Verbose: show full command lines | | -n | Dry run | | -C dir | Change to dir before doing anything | | -t tool | Run a sub-tool (clean, query, targets, graph, compdb) |
Ninja build system skill. Use when diagnosing Ninja build failures, understanding Ninja's role as a low-level build executor generated by CMake or other meta-build systems, tuning parallelism, interpreting Ninja output, or working with build.ninja files. Activates on queries about ninja errors, ninja parallelism, ninja verbose output, build.ninja format, or ninja as a CMake generator. Source: mohitmishra786/low-level-dev-skills.