aboutsummaryrefslogtreecommitdiff
path: root/build2/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-11-02 09:56:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-11-08 11:08:03 +0200
commitf7f22db6030464f63eb942da04b3d5e10351f770 (patch)
treef1436a78ecb4d50b0d5b791ea89e44e30a8b7f10 /build2/cli
parent2c140c400cf9e3a93aabaeca8abfa1009c40bf19 (diff)
More work on child process diagnostics buffering
Diffstat (limited to 'build2/cli')
-rw-r--r--build2/cli/rule.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx
index 364c90b..9e3ffa6 100644
--- a/build2/cli/rule.cxx
+++ b/build2/cli/rule.cxx
@@ -222,6 +222,8 @@ namespace build2
const cli_cxx& t (xt.as<cli_cxx> ());
const path& tp (t.h->path ());
+ context& ctx (t.ctx);
+
// Update prerequisites and determine if any relevant ones render us
// out-of-date. Note that currently we treat all the prerequisites as
// potentially affecting the result (think prologues/epilogues, CLI
@@ -325,9 +327,9 @@ namespace build2
else if (verb)
text << "cli " << s;
- if (!t.ctx.dry_run)
+ if (!ctx.dry_run)
{
- run (pp, args);
+ run (ctx, pp, args);
dd.check_mtime (tp);
}