From 99a81bd5f5fcd92460154a9b6b7805bb7401806e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 1 Nov 2023 10:17:22 +0200 Subject: WIP: install: replace text with trace --- libbuild2/cc/install-rule.cxx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'libbuild2/cc') diff --git a/libbuild2/cc/install-rule.cxx b/libbuild2/cc/install-rule.cxx index 1d30a9f..28d1a58 100644 --- a/libbuild2/cc/install-rule.cxx +++ b/libbuild2/cc/install-rule.cxx @@ -405,11 +405,13 @@ namespace build2 void install_rule:: reapply (action a, target& t, match_extra& me) const { + tracer trace ("cc::install_rule::reapply"); + assert (a.operation () != update_id && !t.is_a ()); - text << "REMATCH " << t - << ' ' << me.cur_options - << ' ' << me.new_options; // @@ TMP + l6 ([&]{trace << "rematching " << t + << ", current options " << me.cur_options + << ", new options " << me.new_options;}); me.cur_options |= me.new_options; @@ -746,11 +748,13 @@ namespace build2 void libux_install_rule:: reapply (action a, target& t, match_extra& me) const { + tracer trace ("cc::linux_install_rule::reapply"); + assert (a.operation () != update_id && !t.is_a ()); - text << "REMATCH " << t - << ' ' << me.cur_options - << ' ' << me.new_options; // @@ TMP + l6 ([&]{trace << "rematching " << t + << ", current options " << me.cur_options + << ", new options " << me.new_options;}); me.cur_options |= me.new_options; -- cgit v1.1