diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-27 08:29:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-27 08:29:52 +0200 |
commit | c2001eb367b9b82e26689cad6f1f74f46c72b904 (patch) | |
tree | db2ee46fc11989d85201ccebaf44f51b978fb313 /build2/install | |
parent | 530e19cc8f53f066039967c41bb432111ce98626 (diff) |
Pass target to prerequisite search
Diffstat (limited to 'build2/install')
-rw-r--r-- | build2/install/rule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |