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/cc/compile-rule.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/cc/compile-rule.cxx') diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index a6d2d48..632a9bf 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -3537,6 +3537,7 @@ namespace build2 // Find the mxx{} prerequisite and extract its "file name" for the // fuzzy match unless the user specified the module name explicitly. // + resolve_group (a, *pt); for (prerequisite_member p: group_prerequisite_members (a, *pt)) { if (p.is_a (*x_mod)) @@ -3649,6 +3650,8 @@ namespace build2 if (in != mn) { + // Note: matched, so the group should be resolved. + // for (prerequisite_member p: group_prerequisite_members (a, *bt)) { if (p.is_a (*x_mod)) // Got to be there. @@ -3865,6 +3868,8 @@ namespace build2 // sort things out. This is pretty similar to what we do in link when // synthesizing dependencies for bmi{}'s. // + // Note: lt is matched and so the group is resolved. + // ps.push_back (prerequisite (lt)); for (prerequisite_member p: group_prerequisite_members (a, lt)) { -- cgit v1.1