From d69e09acb570030a56566739569867139f5d1f4b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 25 May 2018 11:48:37 +0200 Subject: Change default install filter to only accept prerequisites from amalgamation --- build2/cc/install-rule.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build2/cc/install-rule.cxx') diff --git a/build2/cc/install-rule.cxx b/build2/cc/install-rule.cxx index eda6ba0..a7e05b0 100644 --- a/build2/cc/install-rule.cxx +++ b/build2/cc/install-rule.cxx @@ -57,6 +57,8 @@ namespace build2 if (const libx* l = pt->is_a ()) pt = &link_member (*l, a, link_info (t.base_scope (), ot)); + // Note: not redundant since we are returning a member. + // if ((st && pt->is_a ()) || (at && pt->is_a ())) return pt->in (t.weak_scope ()) ? pt : nullptr; -- cgit v1.1