aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-11-01 10:17:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-11-01 10:17:22 +0200
commit99a81bd5f5fcd92460154a9b6b7805bb7401806e (patch)
treecd7dfc7182b82dc302bf62d539ac49b1ca7581dc
parent834e835eb362cd94a3e86c260589368cea65af47 (diff)
WIP: install: replace text with tracematch-options
-rw-r--r--libbuild2/cc/install-rule.cxx16
1 files changed, 10 insertions, 6 deletions
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<exe> ());
- 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<libue> ());
- 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;