commit | 3faa60f59806427411be456f8a71480f96fdfb40 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Fri Aug 21 13:24:39 2015 -0700 |
committer | Dan Willemsen <dwillemsen@google.com> | Tue Aug 25 13:26:58 2015 -0700 |
tree | 1a6a4ce9a565ba5e0840da6ff21947df3e3e6e51 | |
parent | e6f6858860e28b4336ae5d64d42b5080a6fbe4c1 [diff] |
[C++-ninja] Fix phony rules not always running Phony rules that had commands aren't marked as phony in ninja, so they weren't always being run. Instead, add a _kati_always_build_ phony rule that all phony rules depend on. Change-Id: I7d8afbd3c10d77e3158cedb839e501e1f9a693d8
kati is an experimental GNU make clone. The main goal of this tool is to speed-up incremental build of Android.
Currently, kati does not offer a faster build by itself. It instead converts your Makefile to a ninja file.
Set up kati:
% cd ~/src % git clone https://github.com/google/kati % cd kati % make
Build Android:
% cd <android-directory> % source build/envsetup.sh % lunch <your-choice> % ~/src/kati/m2n --kati_stats # Use --goma if you are a Googler. % ./ninja.sh
You need ninja in your $PATH.
% ./ninja.sh -t clean
Note ./ninja.sh passes all parameters to ninja.
For example, the following is equivalent to “make cts”:
% ./ninja.sh cts
Or, if you know the path you want, you can do:
% ./ninja.sh out/host/linux-x86/bin/adb
% ~/src/kati/m2n -j10 % ./ninja.sh
Or
% ./ninja.sh -j10
Note the latter kills the parallelism of goma.