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. --- libbuild2/b-options.hxx | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'libbuild2/b-options.hxx') diff --git a/libbuild2/b-options.hxx b/libbuild2/b-options.hxx index d8d85d3..2780a8d 100644 --- a/libbuild2/b-options.hxx +++ b/libbuild2/b-options.hxx @@ -98,12 +98,6 @@ namespace build2 const bool& stat () const; - const std::set& - dump () const; - - bool - dump_specified () const; - const bool& progress () const; @@ -164,6 +158,24 @@ namespace build2 const bool& no_mtime_check () const; + const std::set& + dump () const; + + bool + dump_specified () const; + + const std::vector& + trace_match () const; + + bool + trace_match_specified () const; + + const std::vector& + trace_execute () const; + + bool + trace_execute_specified () const; + const bool& no_column () const; @@ -249,8 +261,6 @@ namespace build2 uint16_t verbose_; bool verbose_specified_; bool stat_; - std::set dump_; - bool dump_specified_; bool progress_; bool no_progress_; size_t jobs_; @@ -271,6 +281,12 @@ namespace build2 bool structured_result_specified_; bool mtime_check_; bool no_mtime_check_; + std::set dump_; + bool dump_specified_; + std::vector trace_match_; + bool trace_match_specified_; + std::vector trace_execute_; + bool trace_execute_specified_; bool no_column_; bool no_line_; path buildfile_; -- cgit v1.1