diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-07 14:30:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-03-07 14:30:28 +0200 |
commit | 9400ddfc949025abddb04344624fba3945562d33 (patch) | |
tree | d67200faeaa9500f79117b46542b93ec745ef58d /build2/dist/operation.cxx | |
parent | 1845141809aa91b03718066a6f46863885a6a887 (diff) |
Move bunch of root scope-only data members to root_extra
Diffstat (limited to 'build2/dist/operation.cxx')
-rw-r--r-- | build2/dist/operation.cxx | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx index b227bbd..5d46b6e 100644 --- a/build2/dist/operation.cxx +++ b/build2/dist/operation.cxx @@ -143,11 +143,13 @@ namespace build2 const path locf ("<dist>"); const location loc (&locf); // Dummy location. - for (operations::size_type id (default_id + 1); - id < rs->operations.size (); + const operations& ops (rs->root_extra->operations); + + for (operations::size_type id (default_id + 1); // Skip default_id. + id < ops.size (); ++id) { - if (const operation_info* oif = rs->operations[id]) + if (const operation_info* oif = ops[id]) { // Skip aliases (e.g., update-for-install). In fact, one can argue // the default update should be sufficient since it is assumed to @@ -164,7 +166,7 @@ namespace build2 { if (operation_id pid = oif->pre (params, dist_id, loc)) { - const operation_info* poif (rs->operations[pid]); + const operation_info* poif (ops[pid]); set_current_oif (*poif, oif, false /* diag_noise */); action a (dist_id, poif->id, oif->id); match (params, a, ts, @@ -183,7 +185,7 @@ namespace build2 { if (operation_id pid = oif->post (params, dist_id)) { - const operation_info* poif (rs->operations[pid]); + const operation_info* poif (ops[pid]); set_current_oif (*poif, oif, false /* diag_noise */); action a (dist_id, poif->id, oif->id); match (params, a, ts, @@ -340,7 +342,7 @@ namespace build2 // Copy over all the files. Apply post-processing callbacks. // - module& mod (*rs->modules.lookup<module> (module::name)); + module& mod (*rs->lookup_module<module> (module::name)); prog = prog && show_progress (1 /* max_verb */); size_t prog_percent (0); @@ -374,7 +376,7 @@ namespace build2 { srs = &scopes.find (out_root / pd); - if (auto* m = srs->modules.lookup<module> (module::name)) + if (auto* m = srs->lookup_module<module> (module::name)) cbs = &m->callbacks_; else fail << "dist module not loaded in subproject " << pd; |