diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-02 11:55:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:41 +0200 |
commit | d263455d5ac0d87541144dd7a37eb6255b721a89 (patch) | |
tree | 97b56b4f817c61de5fa543cfa6d94bab5f05c5c0 /build2/operation.cxx | |
parent | 53f02bf28dae507a51515ed6ac03226d68816494 (diff) |
Redesign target_set interface in preparation for locking
Diffstat (limited to 'build2/operation.cxx')
-rw-r--r-- | build2/operation.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx index 4e65783..5815834 100644 --- a/build2/operation.cxx +++ b/build2/operation.cxx @@ -76,11 +76,10 @@ namespace build2 phase_guard pg (run_phase::search_match); - auto i (targets.find (tk, trace)); - if (i == targets.end ()) + if (target* t = targets.find (tk, trace)) + ts.push_back (t); + else fail (l) << "unknown target " << tk; - - ts.push_back (i->get ()); } void |