projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4bebb7
)
make the phony depfile edge order-only
author
Evan Martin
<martine@danga.com>
Tue, 17 May 2011 23:36:30 +0000
(16:36 -0700)
committer
Evan 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
patch
|
blob
|
history
diff --git
a/src/graph.cc
b/src/graph.cc
index
cb51618
..
8abaa2a
100644
(file)
--- 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);
}