aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-25 10:55:19 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-25 10:55:19 +0200
commitbcd4d3e18c93d5f132f871e78185bf743509dae6 (patch)
tree21f112115d048a59c79403e58636418c3499bb86
parentf0438883c91b739192284931763ffd85d3488195 (diff)
Fix bug in add_adhoc_member() (set group)
-rw-r--r--build2/algorithm.cxx3
1 files changed, 3 insertions, 0 deletions
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.