aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-03 12:09:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-03 12:09:34 +0200
commit450c907b2a10c43748b8c15df20d92ff782269c7 (patch)
tree42f3faa065a02b9425d6b6c4d374178efa5fd769 /libbuild2
parent920ed11a433b0e292a18adb8c68829a00e8c70cc (diff)
Add clarifying comment
Diffstat (limited to 'libbuild2')
-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;