Home Explore Blog Models CI



nixpkgs

doc/hooks/ninja.section.md
df4307c21f8360760ca9146198bbd3d6273f7c5ebd5973cb000000030000018a
# ninja {#ninja}

Overrides the build, install, and check phase to run ninja instead of make. You can disable this behavior with `dontUseNinjaBuild`, `dontUseNinjaInstall`, and `dontUseNinjaCheck`, respectively. Parallel building is enabled by default in Ninja.

Note that if the [Meson setup hook](#meson) is also active, Ninja's install and check phases will be disabled in favor of Meson's.

Chunks
e4c71192 (1st chunk of `doc/hooks/ninja.section.md`)
Title: Ninja Build System Override
Summary
This section describes the `ninja` hook, which overrides the default build, install, and check phases to use Ninja instead of Make. Parallel building is enabled by default with Ninja. Users can disable these overrides using `dontUseNinjaBuild`, `dontUseNinjaInstall`, and `dontUseNinjaCheck` respectively. It also notes that if the Meson setup hook is active, Meson's install and check phases will take precedence over Ninja's.