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.ixx | 48 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 36 insertions(+), 12 deletions(-) (limited to 'libbuild2/b-options.ixx') diff --git a/libbuild2/b-options.ixx b/libbuild2/b-options.ixx index b7944ba..f43dce2 100644 --- a/libbuild2/b-options.ixx +++ b/libbuild2/b-options.ixx @@ -68,18 +68,6 @@ namespace build2 return this->stat_; } - inline const std::set& b_options:: - dump () const - { - return this->dump_; - } - - inline bool b_options:: - dump_specified () const - { - return this->dump_specified_; - } - inline const bool& b_options:: progress () const { @@ -200,6 +188,42 @@ namespace build2 return this->no_mtime_check_; } + inline const std::set& b_options:: + dump () const + { + return this->dump_; + } + + inline bool b_options:: + dump_specified () const + { + return this->dump_specified_; + } + + inline const std::vector& b_options:: + trace_match () const + { + return this->trace_match_; + } + + inline bool b_options:: + trace_match_specified () const + { + return this->trace_match_specified_; + } + + inline const std::vector& b_options:: + trace_execute () const + { + return this->trace_execute_; + } + + inline bool b_options:: + trace_execute_specified () const + { + return this->trace_execute_specified_; + } + inline const bool& b_options:: no_column () const { -- cgit v1.1