diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-02-11 12:05:19 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-02-11 12:05:19 +0200 |
commit | 5278e39d58007b730e452a14d8e13aa93118e9f4 (patch) | |
tree | 18e1e2fe0a3cac3adf6c74c4e8118e89c59a8ed2 /build2/b.cxx | |
parent | 364159d8d024a783db44cb0a5b81e94f87f10ef4 (diff) |
Add match_only flag to context
Diffstat (limited to 'build2/b.cxx')
-rw-r--r-- | build2/b.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 */); } |