aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbuild2/file.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/file.cxx b/libbuild2/file.cxx
index bf97ea7..4c7e6d9 100644
--- a/libbuild2/file.cxx
+++ b/libbuild2/file.cxx
@@ -1520,7 +1520,12 @@ namespace build2
if (t != nullptr)
{
if (const file* f = t->is_a<file> ())
+ {
+ // Note that this can happen if we import the same target via two
+ // different ways (e.g., installed and via an export stub).
+ //
assert (f->path () == p);
+ }
}
return t;