aboutsummaryrefslogtreecommitdiff
path: root/build2/cli/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-15 03:55:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-02 14:03:34 +0200
commitb37f1aa6398065be806e6605a023189685669885 (patch)
treeb9b32091e3d70a31852302b24c99ecb62465464a /build2/cli/target.cxx
parenta64b2ae2099346471ead988d5f2d383d55a9bf89 (diff)
Implement parallel match
Diffstat (limited to 'build2/cli/target.cxx')
-rw-r--r--build2/cli/target.cxx18
1 files changed, 3 insertions, 15 deletions
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 <build2/cli/target>
-#include <build2/filesystem> // 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<target* const*> (&h),
+ ? group_view {reinterpret_cast<const target* const*> (&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<target*, optional<string>>
cli_cxx_factory (const target_type&,
dir_path d,