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/bin/rule.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/bin/rule.cxx') diff --git a/build2/bin/rule.cxx b/build2/bin/rule.cxx index 3ea8e75..fd1526e 100644 --- a/build2/bin/rule.cxx +++ b/build2/bin/rule.cxx @@ -53,8 +53,8 @@ namespace build2 fail << "unknown library type: " << type << info << "'static', 'shared', or 'both' expected"; - t.a = a ? &search (t.dir, t.out, t.name) : nullptr; - t.s = s ? &search (t.dir, t.out, t.name) : nullptr; + t.a = a ? &search (t, t.dir, t.out, t.name) : nullptr; + t.s = s ? &search (t, t.dir, t.out, t.name) : nullptr; match_result mr (true); -- cgit v1.1