From c2001eb367b9b82e26689cad6f1f74f46c72b904 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 27 Apr 2017 08:29:52 +0200 Subject: Pass target to prerequisite search --- build2/install/rule.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/install') diff --git a/build2/install/rule.cxx b/build2/install/rule.cxx index 0cfbe84..9f668f9 100644 --- a/build2/install/rule.cxx +++ b/build2/install/rule.cxx @@ -51,7 +51,7 @@ namespace build2 for (const prerequisite& p: group_prerequisites (t)) { - const target& pt (search (p)); + const target& pt (search (t, p)); // Check if this prerequisite is explicitly "not installable", // that is, there is the 'install' variable and its value is @@ -121,7 +121,7 @@ namespace build2 const target* file_rule:: filter (action, const target& t, prerequisite_member p) const { - const target& pt (p.search ()); + const target& pt (p.search (t)); return pt.in (t.root_scope ()) ? &pt : nullptr; } -- cgit v1.1