From bb4f9e6498ba715911f83e0dc221a5b1b86baf51 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Jul 2015 10:32:50 +0200 Subject: Further test module development --- build/algorithm.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'build/algorithm.cxx') diff --git a/build/algorithm.cxx b/build/algorithm.cxx index a19db36..8893045 100644 --- a/build/algorithm.cxx +++ b/build/algorithm.cxx @@ -41,6 +41,20 @@ namespace build return create_new_target (pk); } + target& + search (name n, scope& s) + { + const string* e; + const target_type* tt (s.find_target_type (n, e)); + + if (tt == nullptr) + fail << "unknown target type " << n.type << " in name " << n; + + n.dir.normalize (); + + return search (*tt, move (n.dir), move (n.value), e, &s); + } + match_result_impl match_impl (action a, target& t, bool apply) { -- cgit v1.1