diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-14 15:48:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-14 15:48:34 +0200 |
commit | 47bf5cd6a167730ee06a1c7cffeae6540f67dde0 (patch) | |
tree | 7c9c07d33b41be75d1a5d6ec40c153beda2a2a19 /build/algorithm.ixx | |
parent | f62ff2e840fd92a03b4a3298de938d426f8b5c7a (diff) |
Rework meta/operation registration
We now have global tables for meta/operation. Plus each can
then be enabled on the per-project basis.
Diffstat (limited to 'build/algorithm.ixx')
-rw-r--r-- | build/algorithm.ixx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/algorithm.ixx b/build/algorithm.ixx index e0b9364..ac2b1fc 100644 --- a/build/algorithm.ixx +++ b/build/algorithm.ixx @@ -68,11 +68,11 @@ namespace build inline void unmatch (action, target& t) { + // text << "U " << t << ": " << t.dependents << " " << dependency_count; + assert (t.dependents != 0 && dependency_count != 0); t.dependents--; dependency_count--; - - // text << "U " << t << ": " << t.dependents << " " << dependency_count; } inline void @@ -131,6 +131,8 @@ namespace build inline target_state execute (action a, target& t) { + // text << "E " << t << ": " << t.dependents << " " << dependency_count; + if (dependency_count != 0) // Re-examination of a postponed target? { assert (t.dependents != 0); @@ -138,8 +140,6 @@ namespace build dependency_count--; } - // text << "E " << t << ": " << t.dependents << " " << dependency_count; - switch (target_state ts = t.state ()) { case target_state::unchanged: |