aboutsummaryrefslogtreecommitdiff
path: root/build2/prerequisite.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-04-21 07:19:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-04-21 07:19:03 +0200
commit1397444e5de3281431d2174564dfd76fe7b7b32f (patch)
treea58a822b31ae403f83868bdc8157d4caa82c32f8 /build2/prerequisite.cxx
parent855ee25d977c3e658162210de3c418922e1fe949 (diff)
Use hash map/set for targets/prerequisites to resolve key change issue
Diffstat (limited to 'build2/prerequisite.cxx')
-rw-r--r--build2/prerequisite.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/build2/prerequisite.cxx b/build2/prerequisite.cxx
index 4adfc92..d2f80cf 100644
--- a/build2/prerequisite.cxx
+++ b/build2/prerequisite.cxx
@@ -59,7 +59,8 @@ namespace build2
tracer& trace) -> pair<prerequisite&, bool>
{
//@@ OPT: would be nice to somehow first check if this prerequisite is
- // already in the set before allocating a new instance.
+ // already in the set before allocating a new instance. Something with
+ // bounds and insert hints?
// Find or insert.
//
@@ -68,8 +69,6 @@ namespace build2
// Update extension if the existing prerequisite has it unspecified.
//
- // @@ Changing the key!
- //
if (p.ext != ext)
{
l5 ([&]{