aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-12-15 07:42:13 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-12-15 07:42:13 +0200
commitf9e9d10bcb60b807466ddb646a9c0a0a447f7a20 (patch)
tree65f3b3eb56a6bc85ebfadb1cf1d27a25fdb0feb5 /libbuild2/target.hxx
parent89aaf4d9eb26564b88c1ff400a12277e5ee45c1a (diff)
Return stable imported target name from import_direct()
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx
index 1c10621..c2df3e7 100644
--- a/libbuild2/target.hxx
+++ b/libbuild2/target.hxx
@@ -315,6 +315,11 @@ namespace build2
target_key
key_locked () const;
+ // Note that the returned name is guaranteed to be "stable" (e.g., for
+ // hashing) only if the target has the extension assigned. This happens,
+ // for example, when a path is derived for a path-based target (which
+ // normally happens when such a target is matched for update).
+ //
names
as_name () const;