aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-28 14:03:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-28 14:03:12 +0200
commit27547e341f32782ad2d7fd998dde1cb04f4bf1db (patch)
treea87ec58755cb133566b5c1fafae4d68bebeeed09 /libbuild2/algorithm.hxx
parentcd651d5ca3572413180827232eb18239750befca (diff)
Allow calling certain search_existing() versions during load phase
This is necessary for $target.path() implementation.
Diffstat (limited to 'libbuild2/algorithm.hxx')
-rw-r--r--libbuild2/algorithm.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/libbuild2/algorithm.hxx b/libbuild2/algorithm.hxx
index 390516a..de09469 100644
--- a/libbuild2/algorithm.hxx
+++ b/libbuild2/algorithm.hxx
@@ -23,7 +23,8 @@ namespace build2
LIBBUILD2_SYMEXPORT const target&
search (const target&, const prerequisite&);
- // As above but only search for an already existing target.
+ // As above but only search for an already existing target. Note that unlike
+ // the above, this version can be called during the execute phase.
//
LIBBUILD2_SYMEXPORT const target*
search_existing (const prerequisite&);
@@ -38,6 +39,9 @@ namespace build2
LIBBUILD2_SYMEXPORT const target&
search (const target&, const prerequisite_key&);
+ // Note that unlike the above version, this one can be called during the
+ // load and execute phases.
+ //
LIBBUILD2_SYMEXPORT const target*
search_existing (context&, const prerequisite_key&);
@@ -94,8 +98,8 @@ namespace build2
LIBBUILD2_SYMEXPORT const target&
search (const target&, name, const scope&);
- // Unlike the above version, this one can be called during the execute
- // phase. Return NULL for unknown target types.
+ // Return NULL for unknown target types. Note that unlike the above version,
+ // these ones can be called during the load and execute phases.
//
LIBBUILD2_SYMEXPORT const target*
search_existing (const name&,