commit | c24d66a4f1e232d989050a204054d26e65c0e62d | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Tue Aug 29 19:53:50 2023 +0200 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 19 21:39:32 2024 +0000 |
tree | 0ccb88c1c6ddaf4a208de08f21b6465e7c575111 | |
parent | f3244196d441cbcd8e53f0f2c4efe6851ac3450c [diff] |
Fix State::Reset() implementation. This was missing a field in the state of Node, and did not reset State::pools_ correctly, a potential source of build breaks in persistent mode. Fuchsia-Topic: persistent-mode Original-Change-Id: I00b50bc35deb80811fd8da4ff385c79f628bdeae Change-Id: I802b2f6ce782ab44fd4ef69a227509270c02990e Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/ninja-build/ninja/+/977212 Reviewed-by: David Fang <fangism@google.com> Commit-Queue: David Turner <digit@google.com>
Ninja is a small build system with a focus on speed. https://ninja-build.org/
See the manual or doc/manual.asciidoc
included in the distribution for background and more details.
Binaries for Linux, Mac and Windows are available on GitHub. Run ./ninja -h
for Ninja help.
Installation is not necessary because the only required file is the resulting ninja binary. However, to enable features like Bash completion and Emacs and Vim editing modes, some files in misc/ must be copied to appropriate locations.
If you're interested in making changes to Ninja, read CONTRIBUTING.md first.
You can either build Ninja via the custom generator script written in Python or via CMake. For more details see the wiki.
./configure.py --bootstrap
This will generate the ninja
binary and a build.ninja
file you can now use to build Ninja with itself.
cmake -Bbuild-cmake cmake --build build-cmake
The ninja
binary will now be inside the build-cmake
directory (you can choose any other name you like).
To run the unit tests:
./build-cmake/ninja_test