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 빌드 실패 진단, CMake 또는 기타 메타 빌드 시스템에서 생성된 하위 수준 빌드 실행자로서 Ninja의 역할 이해, 병렬 처리 조정, Ninja 출력 해석 또는 build.ninja 파일 작업 시 사용합니다. ninja 오류, ninja 병렬 처리, ninja 자세한 출력, build.ninja 형식 또는 ninja에 대한 쿼리에 대해 CMake 생성기로 활성화합니다. 출처: mohitmishra786/low-level-dev-skills.