commit | f4e6467eb9a901272971d9944bec43c31e7cc9fe | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Fri Jun 09 19:09:22 2023 +0200 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 17 17:04:51 2024 +0000 |
tree | c5a8a364cf60ce67622e1cef2aa0d616e9914086 | |
parent | 40d44ccaf9c9b109e867b05d61ba6e4ed3db3f5c [diff] |
Support running under Wine Adds a IsRunningUnderWine() function to util.h to detect when the program is being run under the Wine emulator on Linux. This allows disabling a few tests that fail on this platform due to Wine emulation bugs. + Provide an alternative to _mktemp_s() since the implementation provided by the Wine C runtime is broken and will deterministically fail after 26 calls, which broke many unit tests running under it. Fuchsia-Only: Local development fix. Original-Change-Id: I762cd7cff1989adeb3e1ae53e9119e82e4a50b3d Change-Id: Ic3b28fe16f64b466af4eef2cca5e294be15fd3f5 Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/github.com/ninja-build/ninja/+/970038 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