diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-15 03:55:15 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-02 14:03:34 +0200 |
commit | b37f1aa6398065be806e6605a023189685669885 (patch) | |
tree | b9b32091e3d70a31852302b24c99ecb62465464a /build2/dist/rule.cxx | |
parent | a64b2ae2099346471ead988d5f2d383d55a9bf89 (diff) |
Implement parallel match
Diffstat (limited to 'build2/dist/rule.cxx')
-rw-r--r-- | build2/dist/rule.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/dist/rule.cxx b/build2/dist/rule.cxx index f5c4018..bf5ab47 100644 --- a/build2/dist/rule.cxx +++ b/build2/dist/rule.cxx @@ -16,17 +16,17 @@ namespace build2 namespace dist { match_result rule:: - match (slock&, action, target&, const string&) const + match (action, target&, const string&) const { return true; // We always match. } recipe rule:: - apply (slock& ml, action a, target& t) const + apply (action a, target& t) const { const dir_path& out_root (t.root_scope ().out_path ()); - auto r (group_prerequisite_members (ml, a, t, false)); + auto r (group_prerequisite_members (a, t, false)); for (auto i (r.begin ()); i != r.end (); ++i) { prerequisite_member p (*i); @@ -43,12 +43,12 @@ namespace build2 if (p.type ().see_through && i.enter_group ()) continue; - target& pt (p.search ()); + const target& pt (p.search ()); // Don't match targets that are outside of our project. // if (pt.dir.sub (out_root)) - build2::match (ml, a, pt); + build2::match (a, pt); } return noop_recipe; // We will never be executed. |