aboutsummaryrefslogtreecommitdiff
path: root/build2/dist
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-30 09:51:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-30 10:00:35 +0200
commitf89d2c16c1dad9b8d2f3b0e402a47e30521f5a69 (patch)
tree10fe158dd8ca79c89ede9d21bdbfc57104c65d57 /build2/dist
parent83d5e6063f670134303a3396219f63eaac0aedff (diff)
Add support for config.build file versioning
Diffstat (limited to 'build2/dist')
-rw-r--r--build2/dist/operation.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/build2/dist/operation.cxx b/build2/dist/operation.cxx
index d03fe28..12bcc61 100644
--- a/build2/dist/operation.cxx
+++ b/build2/dist/operation.cxx
@@ -101,17 +101,15 @@ namespace build2
id < rs->operations.size ();
++id)
{
- const operation_info* oi (rs->operations[id]);
- if (oi == nullptr)
+ const operation_info* oif (rs->operations[id]);
+ if (oif == nullptr)
continue;
// Note that we are not calling operation_pre/post() callbacks
// here since the meta operation is dist and we know what we
// are doing.
//
- current_inner_oif = oi;
- current_outer_oif = nullptr;
- current_mode = oi->mode;
+ set_current_oif (*oif);
dependency_count = 0;
action a (dist_id, id);
@@ -237,14 +235,12 @@ namespace build2
if (perform.meta_operation_pre != nullptr)
perform.meta_operation_pre ();
- current_mif = &perform;
+ set_current_mif (perform);
if (perform.operation_pre != nullptr)
perform.operation_pre (update_id);
- current_inner_oif = &update;
- current_outer_oif = nullptr;
- current_mode = update.mode;
+ set_current_oif (update);
dependency_count = 0;
action a (perform_id, update_id);