From 27547e341f32782ad2d7fd998dde1cb04f4bf1db Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 May 2020 14:03:12 +0200 Subject: Allow calling certain search_existing() versions during load phase This is necessary for $target.path() implementation. --- libbuild2/algorithm.hxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libbuild2/algorithm.hxx') 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&, -- cgit v1.1