diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-08 14:32:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-02-09 10:19:46 +0200 |
commit | 9689e2bafcf9af511df1f357aa3f6ec8545d0010 (patch) | |
tree | 0d7c28e6ec9e900b90302e0b6754306f3701865c /libbuild2/target.txx | |
parent | 1cccd7acfa672397b7d5d1a759f803bb0f748224 (diff) |
Don't skip empty see-through target groups
Diffstat (limited to 'libbuild2/target.txx')
-rw-r--r-- | libbuild2/target.txx | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libbuild2/target.txx b/libbuild2/target.txx index 5b48ad1..1363935 100644 --- a/libbuild2/target.txx +++ b/libbuild2/target.txx @@ -8,39 +8,6 @@ namespace build2 { - // prerequisite_members_range - // - template <typename T> - void prerequisite_members_range<T>::iterator:: - switch_mode () - { - // A group could be empty, so we may have to iterate. - // - do - { - g_ = resolve_members (*i_); - - // Group could not be resolved. - // - if (g_.members == nullptr) - { - assert (r_->mode_ != members_mode::always); - return; - } - - // Skip empty see through groups. - // - for (j_ = 1; j_ <= g_.count && g_.members[j_ - 1] == nullptr; ++j_) ; - if (j_ <= g_.count) - break; - - g_.count = 0; - } - while (++i_ != r_->e_ && i_->type.see_through); - } - - // - // template <const char* ext> const char* target_extension_fix (const target_key& tk, const scope*) |