From bee90675a701d7267caba40921b4606db5072247 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 7 Apr 2022 09:33:50 +0200 Subject: Rename {match,execute}() to *_sync(), add *_complete() In particular, the match() rename makes sure it doesn't clash with rule::match() which, after removal of the hint argument in simple_rule, has exactly the same signature, thus making it error-prone to calling recursively. --- libbuild2/operation.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbuild2/operation.cxx') diff --git a/libbuild2/operation.cxx b/libbuild2/operation.cxx index 72b73f9..b7f414e 100644 --- a/libbuild2/operation.cxx +++ b/libbuild2/operation.cxx @@ -320,7 +320,7 @@ namespace build2 const target& t (at.as ()); target_state s (j < i - ? match (a, t, false) + ? match_complete (a, t, false) : target_state::postponed); switch (s) { @@ -510,6 +510,9 @@ namespace build2 { const target& t (at.as ()); + // Note that here we call executed_state() directly instead of + // execute_complete() since we know there is no need to wait. + // switch ((at.state = t.executed_state (a, false))) { case target_state::unknown: -- cgit v1.1