From b37f1aa6398065be806e6605a023189685669885 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Feb 2017 03:55:15 +0200 Subject: Implement parallel match --- build2/file.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index 06910dc..3d7f1b8 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -1142,7 +1142,7 @@ namespace build2 return names (); // Never reached. } - target* + const target* import (const prerequisite_key& pk, bool existing) { tracer trace ("import"); @@ -1174,7 +1174,7 @@ namespace build2 path& p (pp.effect); assert (!p.empty ()); // We searched for a simple name. - exe* t ( + const exe* t ( !existing ? &targets.insert (tt, p.directory (), @@ -1191,7 +1191,7 @@ namespace build2 if (t != nullptr) { - if (t->path ().empty () && !existing) + if (!existing) t->path (move (p)); else assert (t->path () == p); -- cgit v1.1