a small build system with a focus on speed
Go to file
Kevin Adler 92fc37555f
Fix test crashes on AIX
Both hash_collision_bench and manifest_parser_perftest crash on AIX with

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
IOT/Abort trap (core dumped)

32-bit AIX applications by default allocates only a single 256M segment
for stack and heap for 32-bit applications, which is insufficient for
these tests. When building these tests on AIX in 32-bit mode, increase
the max number of segments so they will run without crashing.
2020-11-13 15:40:51 -06:00
.github/workflows GitHub Actions: Run more tests on Ubuntu 20.04 (Docker) 2020-10-31 01:03:09 +01:00
doc Fix typos 2020-07-07 13:00:22 +02:00
misc Add missing Apache license header, fix #1781 2020-05-25 10:58:34 +02:00
src Use internal getopt for IBM i and AIX 2020-11-13 15:40:51 -06:00
.clang-format clang-format: Do not derive pointer binding from file 2020-02-05 18:08:54 +01:00
.clang-tidy [clang-tidy] remove pointless string init 2020-11-07 12:27:26 -08:00
.editorconfig Add .editorconfig 2019-12-22 14:12:43 +01:00
.gitignore Remove some outdated lines from .gitignore 2019-12-20 14:58:19 +01:00
.travis.yml Travis CI: Remove broken Xcode config 2019-10-28 09:42:54 +01:00
appveyor.yml Fix MinGW bootstrap build by applying the fix in appveyor.yml permanently. 2019-08-26 18:49:47 +02:00
CMakeLists.txt Fix test crashes on AIX 2020-11-13 15:40:51 -06:00
configure.py Fix test crashes on AIX 2020-11-13 15:40:51 -06:00
CONTRIBUTING.md Use short CONTRIBUTING.md instead of HACKING.md 2019-11-24 12:58:31 +01:00
COPYING Revert 78f893bdbb 2017-05-15 18:41:22 -04:00
README.md Turn CONTRIBUTING.md into a link 2020-04-06 16:05:27 +02:00
RELEASING Use short CONTRIBUTING.md instead of HACKING.md 2019-11-24 12:58:31 +01:00

Ninja

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 at 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.

Building Ninja itself

You can either build Ninja via the custom generator script written in Python or via CMake. For more details see the wiki.

Python

./configure.py --bootstrap

This will generate the ninja binary and a build.ninja file you can now use to build Ninja with itself.

CMake

cmake -Bbuild-cmake -H.
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