From f7f22db6030464f63eb942da04b3d5e10351f770 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 2 Nov 2022 09:56:31 +0200 Subject: More work on child process diagnostics buffering --- build2/cli/rule.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/cli') 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 ()); 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); } -- cgit v1.1