From 0ca011d1220207b3c1cba92791413f113ec66329 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 23 Aug 2019 12:45:22 +0200 Subject: keep_going --- libbuild2/context.hxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'libbuild2/context.hxx') 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 -- cgit v1.1