aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/rule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx/rule.cxx')
-rw-r--r--build/cxx/rule.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx
index 72c4e35..9564638 100644
--- a/build/cxx/rule.cxx
+++ b/build/cxx/rule.cxx
@@ -610,10 +610,7 @@ namespace build
// Process prerequisites: do rule chaining for C and C++ source
// files as well as search and match.
//
- group_prerequisites gp (t);
- t.prerequisite_targets.reserve (gp.size ());
-
- for (prerequisite_ref& pr: gp)
+ for (prerequisite_ref& pr: group_prerequisites (t))
{
bool group (!pr.belongs (t)); // Target group's prerequisite.