From 63d1d6f8f4bb6db482b21e728245ebf9eee6b55f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 16 Feb 2018 11:30:41 +0200 Subject: Fix group link-up race --- build2/target.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build2/target.hxx') diff --git a/build2/target.hxx b/build2/target.hxx index 23213a2..e783ee4 100644 --- a/build2/target.hxx +++ b/build2/target.hxx @@ -252,8 +252,8 @@ namespace build2 } public: - // You should not call this function directly; rather use - // resolve_group_members() from . + // Normally you should not call this function directly and rather use + // resolve_members() from algorithm.hxx. // virtual group_view group_members (action) const; @@ -697,6 +697,9 @@ namespace build2 // also be traversed in reverse, but that's what you usually want, // anyway. // + // Note that you either should be iterating over a locked target (e.g., in + // rule's match() or apply()) or you should call resolve_group(). + // class group_prerequisites { public: -- cgit v1.1