From 42163db5edfd6865a05226af23f99aef3622f550 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Tue, 17 Jul 2012 16:42:53 -0700 Subject: explain mode: show which input is more recent Patch from Scott Graham . --- src/graph.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- cgit v0.12