summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-07 17:51:14 (GMT)
committerEvan Martin <martine@danga.com>2011-12-07 17:51:14 (GMT)
commit20b3e6ba2161b42f5fec72ac5adda424f4b68f34 (patch)
tree3bee841de2548230c90310c4fa6d389a238e0f8e /src/graph.cc
parent2863acbe2a3ab11c0a6d5efa93c0491cac63d72a (diff)
downloadNinja-20b3e6ba2161b42f5fec72ac5adda424f4b68f34.zip
Ninja-20b3e6ba2161b42f5fec72ac5adda424f4b68f34.tar.gz
Ninja-20b3e6ba2161b42f5fec72ac5adda424f4b68f34.tar.bz2
make Rule::generator_ and restat_ private
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.cc b/src/graph.cc
index dcfa622..90e730c 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -122,7 +122,7 @@ bool Edge::RecomputeOutputDirty(BuildLog* build_log, time_t most_recent_input,
// rule in a previous run and stored the most recent input mtime in the
// build log. Use that mtime instead, so that the file will only be
// considered dirty if an input was modified since the previous run.
- if (rule_->restat_ && build_log &&
+ if (rule_->restat() && build_log &&
(entry = build_log->LookupByOutput(output->path()))) {
if (entry->restat_mtime < most_recent_input)
return true;
@@ -134,7 +134,7 @@ bool Edge::RecomputeOutputDirty(BuildLog* build_log, time_t most_recent_input,
// May also be dirty due to the command changing since the last build.
// But if this is a generator rule, the command changing does not make us
// dirty.
- if (!rule_->generator_ && build_log &&
+ if (!rule_->generator() && build_log &&
(entry || (entry = build_log->LookupByOutput(output->path())))) {
if (command != entry->command)
return true;