aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-23 14:35:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-23 14:35:53 +0200
commit542ad9696f50e33fa20e735c14c052720c55bc3a (patch)
treeded3e6dbbc09d79d44c32a48c6f75df0e35ef017 /libbuild2/context.cxx
parent0ca011d1220207b3c1cba92791413f113ec66329 (diff)
dry_run
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx
index 1b1b9f6..c454123 100644
--- a/libbuild2/context.cxx
+++ b/libbuild2/context.cxx
@@ -50,9 +50,10 @@ namespace build2
};
context::
- context (scheduler& s, const strings& cmd_vars, bool kg)
+ context (scheduler& s, const strings& cmd_vars, bool dr, bool kg)
: data_ (new data (*this)),
sched (s),
+ dry_run_option (dr),
keep_going (kg),
phase_mutex (phase),
scopes (data_->scopes),
@@ -852,8 +853,6 @@ namespace build2
//text << this_thread::get_id () << " phase restore " << n << " " << o;
}
- bool dry_run = false;
-
void (*config_save_variable) (scope&, const variable&, uint64_t);
const string& (*config_preprocess_create) (context&,