aboutsummaryrefslogtreecommitdiff
path: root/dep.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-10-01 18:38:02 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-10-02 16:08:40 +0900
commit3ac2a09fb0b47ce8e212c21fa4c9fc9d2236a7a0 (patch)
tree7fa578a283a54cf0ebf8b50a4a12013d45073631 /dep.h
parenta62b02a1251a0f6c452a25fce03258f12472507f (diff)
[C++] Add .KATI_RESTAT builtin target
This is an experimental kati-specific expansion for GNU make. Targets specified by this will have "restat = 1" in generated ninja files. Even with this change, kati should be still compatible with GNU make. GNU make will ignore this but this only means GNU make will do some extra unnecessary builds. This different should not change the final output as long as .KATI_RESTAT is used appropriately. TODO: Implement the same feature in exec.cc and add a test.
Diffstat (limited to 'dep.h')
-rw-r--r--dep.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dep.h b/dep.h
index 961ca0a..7fe8439 100644
--- a/dep.h
+++ b/dep.h
@@ -30,7 +30,7 @@ class Value;
class Vars;
struct DepNode {
- DepNode(Symbol output, bool is_phony);
+ DepNode(Symbol output, bool is_phony, bool is_restat);
Symbol output;
vector<Value*> cmds;
@@ -38,8 +38,9 @@ struct DepNode {
vector<DepNode*> order_onlys;
vector<DepNode*> parents;
bool has_rule;
- bool is_phony;
bool is_default_target;
+ bool is_phony;
+ bool is_restat;
vector<Symbol> actual_inputs;
Vars* rule_vars;
Symbol output_pattern;