diff options
Diffstat (limited to 'build2/algorithm.cxx')
-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. |