summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-07-17 23:42:53 (GMT)
committerEvan Martin <martine@danga.com>2012-07-17 23:42:53 (GMT)
commit42163db5edfd6865a05226af23f99aef3622f550 (patch)
tree8415b2262fc15ae7cd2c6c3eea5d5d30c475890a /src
parentdc9759b530496a06ef5039ec232a2ebea9744e90 (diff)
downloadNinja-42163db5edfd6865a05226af23f99aef3622f550.zip
Ninja-42163db5edfd6865a05226af23f99aef3622f550.tar.gz
Ninja-42163db5edfd6865a05226af23f99aef3622f550.tar.bz2
explain mode: show which input is more recent
Patch from Scott Graham <scottmg@chromium.org>.
Diffstat (limited to 'src')
-rw-r--r--src/graph.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 071a3b6..18adeee 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -140,7 +140,10 @@ bool Edge::RecomputeOutputDirty(BuildLog* build_log,
if (rule_->restat() && build_log &&
(entry = build_log->LookupByOutput(output->path()))) {
if (entry->restat_mtime < most_recent_input) {
- EXPLAIN("restat of output %s older than inputs", output->path().c_str());
+ EXPLAIN("restat of output %s older than most recent input %s (%d vs %d)",
+ output->path().c_str(),
+ most_recent_node ? most_recent_node->path().c_str() : "",
+ entry->restat_mtime, most_recent_input);
return true;
}
} else {