diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-25 10:55:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-10-25 10:55:19 +0200 |
commit | bcd4d3e18c93d5f132f871e78185bf743509dae6 (patch) | |
tree | 21f112115d048a59c79403e58636418c3499bb86 | |
parent | f0438883c91b739192284931763ffd85d3488195 (diff) |
Fix bug in add_adhoc_member() (set group)
-rw-r--r-- | build2/algorithm.cxx | 3 |
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. |