aboutsummaryrefslogtreecommitdiff
path: root/dep.cc
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-24 17:37:47 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-06-25 17:51:01 +0900
commit704e4fe0ad758c585e13b6fbffb5c5eacda81d2b (patch)
tree58c157d512c67b8838fb383c6e7ad14d70c709e2 /dep.cc
parenta0560593b21e4ab7546d1c853984a4e604155daf (diff)
downloadkati-704e4fe0ad758c585e13b6fbffb5c5eacda81d2b.tar.gz
[C++] Create dependency for order only inputs
Diffstat (limited to 'dep.cc')
-rw-r--r--dep.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/dep.cc b/dep.cc
index ba21951..789ffda 100644
--- a/dep.cc
+++ b/dep.cc
@@ -365,7 +365,11 @@ class DepBuilder {
n->deps.push_back(c);
}
- // TODO: order only
+ for (StringPiece input : rule->order_only_inputs) {
+ DepNode* c = BuildPlan(input, output);
+ c->is_order_only = true;
+ n->deps.push_back(c);
+ }
n->has_rule = true;
n->cmds = rule->cmds;