From 5278e39d58007b730e452a14d8e13aa93118e9f4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 11 Feb 2020 12:05:19 +0200 Subject: Add match_only flag to context --- build2/b.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build2/b.cxx') diff --git a/build2/b.cxx b/build2/b.cxx index aab73c1..2917ad1 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -588,6 +588,7 @@ main (int argc, char* argv[]) ctx = nullptr; // Free first. ctx.reset (new context (sched, mutexes, + ops.match_only (), ops.dry_run (), !ops.serial_stop () /* keep_going */, cmd_vars)); @@ -1558,7 +1559,7 @@ main (int argc, char* argv[]) if (dump_match) dump (*ctx, a); - if (mif->execute != nullptr && !ops.match_only ()) + if (mif->execute != nullptr && !ctx->match_only) mif->execute (mparams, a, tgs, diag, true /* progress */); } @@ -1585,7 +1586,7 @@ main (int argc, char* argv[]) if (dump_match) dump (*ctx, a); - if (mif->execute != nullptr && !ops.match_only ()) + if (mif->execute != nullptr && !ctx->match_only) mif->execute (mparams, a, tgs, diag, true /* progress */); } @@ -1613,7 +1614,7 @@ main (int argc, char* argv[]) if (dump_match) dump (*ctx, a); - if (mif->execute != nullptr && !ops.match_only ()) + if (mif->execute != nullptr && !ctx->match_only) mif->execute (mparams, a, tgs, diag, true /* progress */); } -- cgit v1.1