diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-07-29 10:44:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-07-29 10:44:18 +0200 |
commit | c3212dbda325bdf6eaff6a7652c996a28e8ba688 (patch) | |
tree | efec5919720793ed9cbc759f7168581a31d3bd29 /libbuild2/target.cxx | |
parent | ab4c1b8a8b67fd9ffc89c804efa260584530897d (diff) |
Add scope::lookup_original_info() that provides additional info about lookup
Diffstat (limited to 'libbuild2/target.cxx')
-rw-r--r-- | libbuild2/target.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx index 2a134a4..1a72788 100644 --- a/libbuild2/target.cxx +++ b/libbuild2/target.cxx @@ -188,9 +188,10 @@ namespace build2 // Skip looking up in the ad hoc group, which is semantically the // first/primary member. // - if ((g1 = group == nullptr + const target* g (group); // Atomic. + if ((g1 = g == nullptr ? nullptr - : group->adhoc_group () ? group->group : group)) + : g->adhoc_group () ? static_cast<const target*> (g->group) : g)) { auto p (g1->vars.lookup (var)); if (p.first != nullptr) |