aboutsummaryrefslogtreecommitdiff
path: root/dep.cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-08-25 13:37:37 -0700
committerDan Willemsen <dwillemsen@google.com>2015-08-31 19:28:46 -0700
commitdfb3096fd6b85be2dae07a33f2dd5177a4da68d6 (patch)
tree8617815a30d12e0558b5ae53a6163f19e03e2e05 /dep.cc
parent87417414fa9d6384f75f325fcebb18ba769caacc (diff)
[C++] Fix ckati with no arguments building all phony targets
Only the first rule should be built if no targets are in the arguments. This wasn't a problem for ninja, since the target was again passed to ninja. Change-Id: Ia5381b89411fcc9b164c83de5faee46029897423
Diffstat (limited to 'dep.cc')
-rw-r--r--dep.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/dep.cc b/dep.cc
index 8736560..df997e1 100644
--- a/dep.cc
+++ b/dep.cc
@@ -143,8 +143,6 @@ class DepBuilder {
CHECK(!first_rule_->outputs.empty());
targets.push_back(first_rule_->outputs[0]);
- for (Symbol s : phony_)
- targets.push_back(s);
}
// TODO: LogStats?