From b37f1aa6398065be806e6605a023189685669885 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Feb 2017 03:55:15 +0200 Subject: Implement parallel match --- build2/cli/target.cxx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'build2/cli/target.cxx') diff --git a/build2/cli/target.cxx b/build2/cli/target.cxx index 200f6f0..51f58aa 100644 --- a/build2/cli/target.cxx +++ b/build2/cli/target.cxx @@ -4,8 +4,6 @@ #include -#include // file_mtime() - using namespace std; using namespace butl; @@ -32,27 +30,17 @@ namespace build2 // cli.cxx // group_view cli_cxx:: - group_members (action_type) + group_members (action_type) const { - static_assert (offsetof (cli_cxx_members, i) - - offsetof (cli_cxx_members, h) == sizeof (target*) * 2, + static_assert (sizeof (cli_cxx_members) == sizeof (const target*) * 3, "member layout incompatible with array"); return h != nullptr - ? group_view {reinterpret_cast (&h), + ? group_view {reinterpret_cast (&h), (i != nullptr ? 3U : 2U)} : group_view {nullptr, 0}; } - timestamp cli_cxx:: - load_mtime () const - { - // The rule has been matched which means the members should - // be resolved and paths assigned. - // - return file_mtime (h->path ()); - } - static pair> cli_cxx_factory (const target_type&, dir_path d, -- cgit v1.1