From 1397444e5de3281431d2174564dfd76fe7b7b32f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Apr 2016 07:19:03 +0200 Subject: Use hash map/set for targets/prerequisites to resolve key change issue --- build2/prerequisite.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'build2/prerequisite.cxx') 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 { //@@ 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 ([&]{ -- cgit v1.1