diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-20 12:38:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-20 12:38:06 +0200 |
commit | 699e3bc87d1cbb3c2b19ddaf5db37909cb49f47b (patch) | |
tree | a79a11758bfd58b38a14459e1b268843d14ca67e /build2/cli/rule.cxx | |
parent | ea8f6e4aeb120117c72b87da398eeebb35fe192a (diff) |
Remove prerequisite caching in scope
We don't share them often and those that are shared (e.g., cxx{} in
obja/objs{}) are lightweight (SOO).
Diffstat (limited to 'build2/cli/rule.cxx')
-rw-r--r-- | build2/cli/rule.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx index d457e6d..f5405a5 100644 --- a/build2/cli/rule.cxx +++ b/build2/cli/rule.cxx @@ -136,7 +136,7 @@ namespace build2 if (g == nullptr) g = &targets.insert<cli_cxx> (t.dir, t.out, t.name, trace); - g->prerequisites.emplace_back (p.as_prerequisite (trace)); + g->prerequisites.push_back (p.as_prerequisite_for (*g)); } else l4 ([&]{trace << ".cli file stem '" << p.name () << "' " |