aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-23 12:45:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-23 12:45:22 +0200
commit0ca011d1220207b3c1cba92791413f113ec66329 (patch)
tree855224e36408fc80ec7d47741b59ce4524402240 /libbuild2/context.hxx
parent20f97f06ce54c31e32cf58cfd1b7cae3617c1661 (diff)
keep_going
Diffstat (limited to 'libbuild2/context.hxx')
-rw-r--r--libbuild2/context.hxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/libbuild2/context.hxx b/libbuild2/context.hxx
index 59c70e3..dbf2329 100644
--- a/libbuild2/context.hxx
+++ b/libbuild2/context.hxx
@@ -110,6 +110,14 @@ namespace build2
public:
scheduler& sched;
+ // Keep going flag.
+ //
+ // Note that setting it to false is not of much help unless we are running
+ // serially: in parallel we queue most of the things up before we see any
+ // failures.
+ //
+ bool keep_going;
+
// In order to perform each operation the build system goes through the
// following phases:
//
@@ -326,7 +334,9 @@ namespace build2
public:
explicit
- context (scheduler&, const strings& cmd_vars = {});
+ context (scheduler&,
+ const strings& cmd_vars = {},
+ bool keep_going = true);
// Set current meta-operation and operation.
//
@@ -471,16 +481,6 @@ namespace build2
bool phase;
};
-
-
- // Keep going flag.
- //
- // Note that setting it to false is not of much help unless we are running
- // serially. In parallel we queue most of the things up before we see any
- // failures.
- //
- LIBBUILD2_SYMEXPORT extern bool keep_going;
-
// Dry run flag (see --dry-run|-n).
//
// This flag is set only for the final execute phase (as opposed to those