diff options
author | Evan Martin <martine@danga.com> | 2011-02-04 05:36:01 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-02-04 05:36:01 (GMT) |
commit | 231206b0b512d8850976fba3f9f16fc7c3872ebc (patch) | |
tree | 63288c48e7c13234f11f3dfda36d25eed6dec703 /manual.asciidoc | |
parent | e5b4647a0f17a83314f2c8d534b1172d2300acae (diff) | |
download | Ninja-231206b0b512d8850976fba3f9f16fc7c3872ebc.zip Ninja-231206b0b512d8850976fba3f9f16fc7c3872ebc.tar.gz Ninja-231206b0b512d8850976fba3f9f16fc7c3872ebc.tar.bz2 |
use builddir for log file
Diffstat (limited to 'manual.asciidoc')
-rw-r--r-- | manual.asciidoc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manual.asciidoc b/manual.asciidoc index fd18200..f50d276 100644 --- a/manual.asciidoc +++ b/manual.asciidoc @@ -251,6 +251,19 @@ statement to the rule (for example, if the rule needs "the file extension of the first input"), pass that through as an extra variable, like how `cflags` is passed above. +The Ninja log +~~~~~~~~~~~~~ + +For each built file, Ninja keeps a log of the command used to build +it. Using this log Ninja can know when an existing output was built +with a different command line than the build files specify (i.e., the +command line changed) and knows to rebuild the file. + +The log file is kept in the build root in a file called `.ninja_log`. +If you provide a variable named `builddir` in the outermost scope, +`.ninja_log` will be kept in that directory instead. + + Generating Ninja files ---------------------- |