diff options
author | Colin Cross <ccross@android.com> | 2017-05-19 04:29:45 (GMT) |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2017-05-22 18:29:06 (GMT) |
commit | a127dda3ee92916ef459b3da7aa9f2920ff1a5ab (patch) | |
tree | 0b5524287de8ab1bb9ca33efb7c5329baed740e7 /src/build.h | |
parent | 036003d20e80cbb044a3f0f0b41e2fdefcde66af (diff) | |
download | Ninja-a127dda3ee92916ef459b3da7aa9f2920ff1a5ab.zip Ninja-a127dda3ee92916ef459b3da7aa9f2920ff1a5ab.tar.gz Ninja-a127dda3ee92916ef459b3da7aa9f2920ff1a5ab.tar.bz2 |
Add a test that fails if a rule updates it output file but fails
https://groups.google.com/forum/#!msg/ninja-build/YQuGNrECI-4/ti-lAs9SPv8J
discusses a case where an rule updates its output file and then
fails. The next run of ninja considers the ouptut file clean
and doesn't rebuild it. Add a test for this case, which currently
fails.
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/build.h b/src/build.h index 66ce607..f97d67e 100644 --- a/src/build.h +++ b/src/build.h @@ -71,6 +71,9 @@ struct Plan { /// Number of edges with commands to run. int command_edge_count() const { return command_edges_; } + /// Reset state. Clears want and ready sets. + void Reset(); + private: bool AddSubTarget(Node* node, vector<Node*>* stack, string* err); bool CheckDependencyCycle(Node* node, const vector<Node*>& stack, |