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/test/rule.cxx | 6 +++--- build2/test/target.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/test') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 171cbac..64292fc 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -227,7 +227,7 @@ namespace build2 group_prerequisite_members (a, t, members_mode::maybe)) { if (p.is_a ()) - t.prerequisite_targets.push_back (&p.search ()); + t.prerequisite_targets.push_back (&p.search (t)); } return [this] (action a, const target& t) @@ -289,9 +289,9 @@ namespace build2 // @@ OUT: what if this is a @-qualified pair or names? // - const target* it (in != nullptr ? &search (*in, bs) : nullptr); + const target* it (in != nullptr ? &search (t, *in, bs) : nullptr); const target* ot (on != nullptr - ? in == on ? it : &search (*on, bs) + ? in == on ? it : &search (t, *on, bs) : nullptr); if (a.operation () == update_id) diff --git a/build2/test/target.cxx b/build2/test/target.cxx index b6f9854..fd432fd 100644 --- a/build2/test/target.cxx +++ b/build2/test/target.cxx @@ -64,7 +64,7 @@ namespace build2 &testscript_target_extension, &testscript_target_pattern, nullptr, - &search_file, + &file_search, false }; } -- cgit v1.1