aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/runner.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-20 20:42:45 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:38:57 +0200
commit7765f51c5f6429fcb45a6c195b71929c392b0a31 (patch)
treefc846784b51451ca8e128306218494cf13c7d816 /libbuild2/build/script/runner.hxx
parente222cbabb84b5a6357242e47196f7e0eeb69a44f (diff)
Make build script runner to execute exit-containing expression in dry-run mode
Diffstat (limited to 'libbuild2/build/script/runner.hxx')
-rw-r--r--libbuild2/build/script/runner.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/build/script/runner.hxx b/libbuild2/build/script/runner.hxx
index db211df..431c446 100644
--- a/libbuild2/build/script/runner.hxx
+++ b/libbuild2/build/script/runner.hxx
@@ -50,6 +50,12 @@ namespace build2
leave (environment&, const location&) = 0;
};
+ // Run command expressions.
+ //
+ // In dry-run mode don't run the expressions unless they are if-
+ // conditions or execute the set or exit builtins, but prints them at
+ // verbosity level 2 and up.
+ //
class default_runner: public runner
{
public: