From: Evan Martin Date: Tue, 17 May 2011 23:36:30 +0000 (-0700) Subject: make the phony depfile edge order-only X-Git-Tag: release-120715~356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba75e87f25e6355a12377c1d2311568e68fa7739;p=platform%2Fupstream%2Fninja.git make the phony depfile edge order-only I'm not sure this is semantically different but it's consistent with how I think about these phony edges. --- diff --git a/src/graph.cc b/src/graph.cc index cb51618..8abaa2a 100644 --- a/src/graph.cc +++ b/src/graph.cc @@ -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); }