make the phony depfile edge order-only
authorEvan Martin <martine@danga.com>
Tue, 17 May 2011 23:36:30 +0000 (16:36 -0700)
committerEvan Martin <martine@danga.com>
Tue, 17 May 2011 23:36:30 +0000 (16:36 -0700)
I'm not sure this is semantically different but it's consistent with
how I think about these phony edges.

src/graph.cc

index cb51618..8abaa2a 100644 (file)
@@ -169,6 +169,7 @@ bool Edge::LoadDepFile(State* state, DiskInterface* disk_interface,
     // but instead will rebuild in that circumstance.
     if (!node->in_edge_) {
       Edge* phony_edge = state->AddEdge(&State::kPhonyRule);
+      phony_edge->order_only_deps_ = 1;
       node->in_edge_ = phony_edge;
       phony_edge->outputs_.push_back(node);
     }