Skip to content

Commit ca4a312

Browse files
timpeutcopybara-github
authored andcommitted
Include target label in optimization action progress message.
PiperOrigin-RevId: 868374011 Change-Id: I92f5b210dbbbe3f1da8a4bcb901c77cf5f94b46d
1 parent 341f15e commit ca4a312

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rules/proguard.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def _create_optimization_actions(
593593
optimize_resources = optimize_resources,
594594
final = True,
595595
mnemonic = mnemonic,
596-
progress_message = "Trimming binary with %s: %s" % (mnemonic, ctx.label),
596+
progress_message = "Trimming %s with %s" % (ctx.label, mnemonic),
597597
proguard_tool = proguard_tool,
598598
)
599599
return outputs
@@ -624,7 +624,7 @@ def _create_optimization_actions(
624624
runtype = "INITIAL",
625625
next_stage_output = last_stage_output,
626626
mnemonic = mnemonic,
627-
progress_message = "Trimming binary with %s: Verification/Shrinking Pass" % mnemonic,
627+
progress_message = "Trimming %s with %s: Verification/Shrinking Pass" % (ctx.label, mnemonic),
628628
proguard_tool = proguard_tool,
629629
)
630630
for i in range(1, num_passes + 1):
@@ -697,7 +697,7 @@ def _create_optimization_actions(
697697
runtype = "FINAL",
698698
last_stage_output = last_stage_output,
699699
mnemonic = mnemonic,
700-
progress_message = "Trimming binary with %s: Obfuscation and Final Output Pass" % mnemonic,
700+
progress_message = "Trimming %s with %s: Obfuscation and Final Output Pass" % (ctx.label, mnemonic),
701701
proguard_tool = proguard_tool,
702702
)
703703
return outputs
@@ -729,7 +729,7 @@ def _create_single_optimization_action(
729729
runtype = "OPTIMIZATION" + runtype_suffix,
730730
last_stage_output = last_stage_output,
731731
next_stage_output = next_stage_output,
732-
progress_message = "Trimming binary with %s: Optimization%s Pass %d" % (mnemonic, runtype_suffix, optimization_pass_num),
732+
progress_message = "Trimming %s with %s: Optimization%s Pass %d" % (ctx.label, mnemonic, runtype_suffix, optimization_pass_num),
733733
proguard_tool = proguard_tool,
734734
)
735735
return next_stage_output

0 commit comments

Comments
 (0)