diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-25 13:41:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-25 13:41:19 +0200 |
commit | 95239b7c5404965d4f5ef997b5b75bf542a25192 (patch) | |
tree | 1b4fc6229723babffa7c5d56ee0c2eae24215535 /build/algorithm.cxx | |
parent | f56b5a42b9aaaeb0c4e7dee894dea9686599b88c (diff) |
Part one of dependency injection with auto-generation support
Diffstat (limited to 'build/algorithm.cxx')
-rw-r--r-- | build/algorithm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/algorithm.cxx b/build/algorithm.cxx index c438fb8..f4da3bd 100644 --- a/build/algorithm.cxx +++ b/build/algorithm.cxx @@ -213,9 +213,9 @@ namespace build search_and_match (action a, target& t) { group_prerequisites gp (t); - t.prerequisite_targets.resize (gp.size ()); + size_t i (t.prerequisite_targets.size ()); + t.prerequisite_targets.resize (gp.size () + i); - size_t i (0); for (prerequisite& p: gp) { target& pt (search (p)); |