summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/graph.cc b/src/graph.cc
index ed7097b..eb107f2 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -40,7 +40,7 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface,
}
// Visit all inputs; we're dirty if any of the inputs are dirty.
- time_t most_recent_input = 1;
+ TimeStamp most_recent_input = 1;
for (vector<Node*>::iterator i = inputs_.begin(); i != inputs_.end(); ++i) {
if ((*i)->StatIfNecessary(disk_interface)) {
if (Edge* edge = (*i)->in_edge()) {
@@ -103,11 +103,12 @@ bool Edge::RecomputeDirty(State* state, DiskInterface* disk_interface,
return true;
}
-bool Edge::RecomputeOutputDirty(BuildLog* build_log, time_t most_recent_input,
+bool Edge::RecomputeOutputDirty(BuildLog* build_log,
+ TimeStamp most_recent_input,
const string& command, Node* output) {
if (is_phony()) {
- // Phony edges don't write any output.
- // Outputs are only dirty if there are no inputs and we're missing the output.
+ // Phony edges don't write any output. Outputs are only dirty if
+ // there are no inputs and we're missing the output.
return inputs_.empty() && !output->exists();
}