From 450c907b2a10c43748b8c15df20d92ff782269c7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 3 Jun 2020 12:09:34 +0200 Subject: Add clarifying comment --- libbuild2/file.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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 ()) + { + // 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; -- cgit v1.1