From bcd4d3e18c93d5f132f871e78185bf743509dae6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 Oct 2018 10:55:19 +0200 Subject: Fix bug in add_adhoc_member() (set group) --- build2/algorithm.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx index ef33cbe..75f7029 100644 --- a/build2/algorithm.cxx +++ b/build2/algorithm.cxx @@ -225,7 +225,10 @@ namespace build2 assert (l.target != nullptr); // Someone messing with ad hoc members? if (*mp == nullptr) + { *mp = l.target; + l.target->group = &t; + } else assert ((*mp)->dir == dir && (*mp)->name == n); // Basic sanity check. -- cgit v1.1