From bbe8cbd13c40a1309e0d7724319c5487a5df0879 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 21 Jun 2022 10:04:07 +0200 Subject: Add --trace-{match,execute} options These options can be used to understand which dependency chain causes matching or execution of a particular target. --- build2/b.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build2/b.cxx') diff --git a/build2/b.cxx b/build2/b.cxx index 470aade..f666b86 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -436,6 +436,12 @@ main (int argc, char* argv[]) ops.dry_run (), !ops.serial_stop () /* keep_going */, cmdl.cmd_vars)); + + if (ops.trace_match_specified ()) + pctx->trace_match = &ops.trace_match (); + + if (ops.trace_execute_specified ()) + pctx->trace_execute = &ops.trace_execute (); }; new_context (); -- cgit v1.1