diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-27 15:25:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:41 +0200 |
commit | f93038fbee1631b95922b0742e0fd00fa8dae02e (patch) | |
tree | 6fe67cbde528ee8ded490085b9a8d5adc0ce5aca /build2/algorithm | |
parent | 267d34d2800d9cc3ed2865cbecf8d32f8f1ab6ec (diff) |
Add notion of phase, enforce
Diffstat (limited to 'build2/algorithm')
-rw-r--r-- | build2/algorithm | 9 |
1 files changed, 9 insertions, 0 deletions
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 |