diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-15 03:55:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-02 14:03:34 +0200 |
commit | b37f1aa6398065be806e6605a023189685669885 (patch) | |
tree | b9b32091e3d70a31852302b24c99ecb62465464a /build2/file.cxx | |
parent | a64b2ae2099346471ead988d5f2d383d55a9bf89 (diff) |
Implement parallel match
Diffstat (limited to 'build2/file.cxx')
-rw-r--r-- | build2/file.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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<exe> (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); |