From bcfcc38538af8bb896551c9e5730767807ad7a67 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Feb 2017 10:05:47 +0200 Subject: Tighten code that operates during both search/match and execute --- build2/cc/link.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/cc/link.cxx') diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 7c946aa..6c17037 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -693,7 +693,7 @@ namespace build2 { // If we need an interface value, then use the group (lib{}). // - if (const target* g = exp && l.is_a () ? l.group : &l) + if (const target* g = exp && l.is_a () ? l.group.get () : &l) { const variable& var ( com @@ -738,7 +738,7 @@ namespace build2 auto opt = [&cs, this] ( const file& l, const string& t, bool com, bool exp) { - if (const target* g = exp && l.is_a () ? l.group : &l) + if (const target* g = exp && l.is_a () ? l.group.get () : &l) { const variable& var ( com -- cgit v1.1