From f93038fbee1631b95922b0742e0fd00fa8dae02e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Jan 2017 15:25:26 +0200 Subject: Add notion of phase, enforce --- build2/algorithm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build2/algorithm') diff --git a/build2/algorithm b/build2/algorithm index 552ea7f..5cd31fe 100644 --- a/build2/algorithm +++ b/build2/algorithm @@ -65,6 +65,15 @@ namespace build2 target& search (name, scope&); + // As above but only search for an already existing target. Unlike the + // above version, this one can be called during the execute phase. + // + // Note that currently we return NULL for project-qualified names and + // unknown target types. + // + target* + search_existing (const name&, scope&, const dir_path& out = dir_path ()); + // Match and apply a rule to the action/target with ambiguity detection. // Increment the target's dependents count, which means that you should call // this function with the intent to also call execute(). In case of -- cgit v1.1