From f9e9d10bcb60b807466ddb646a9c0a0a447f7a20 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Dec 2021 07:42:13 +0200 Subject: Return stable imported target name from import_direct() --- libbuild2/target.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbuild2/target.hxx') 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; -- cgit v1.1