aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/functions-name.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-12-12 12:24:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-12-12 12:24:41 +0200
commit4a4f6583b00a632977481c0f88b427912d5305a8 (patch)
tree4782ba62dee6d93f8d80e31732ae26f6e0816833 /libbuild2/functions-name.hxx
parentd27390e9935c94938af9e7068557d6f6ef9b07a9 (diff)
Generalize to_target() to be usable in other contextsHEADmaster
Diffstat (limited to 'libbuild2/functions-name.hxx')
-rw-r--r--libbuild2/functions-name.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbuild2/functions-name.hxx b/libbuild2/functions-name.hxx
index 34fa4b8..30fc8ad 100644
--- a/libbuild2/functions-name.hxx
+++ b/libbuild2/functions-name.hxx
@@ -18,13 +18,16 @@ namespace build2
// Resolve the name to target issuing diagnostics and failing if not found.
//
LIBBUILD2_SYMEXPORT const target&
- to_target (const scope&, name&&, name&& out);
+ to_target (const scope&,
+ name&&, name&& out,
+ bool in_recipe,
+ const location& = {});
// As above but from the names vector which should contain a single name
// or an out-qualified name pair (asserted).
//
LIBBUILD2_SYMEXPORT const target&
- to_target (const scope&, names&&);
+ to_target (const scope&, names&&, bool in_recipe, const location& = {});
}
#endif // LIBBUILD2_FUNCTIONS_NAME_HXX