summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/graph.cc1
1 files changed, 1 insertions, 0 deletions
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);
}