aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx6
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);