Makefile: helper to print the binary sizes.
What changed, and why it matters
This commit adds a simple Makefile helper that prints the sizes of compiled programs and test binaries. It is a development convenience tool with no effect on the actual Core Lightning software, its network behavior, or user funds.
No security action needed. This is a benign build-system helper.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch introduces a new ‘print-binary-sizes’ make target in the Makefile. It depends on the existing ALL_PROGRAMS and ALL_TEST_PROGRAMS variables and uses find/printf/awk to list individual file sizes and compute totals. No source code, build flags, installed binaries, or runtime logic are changed.
Changed components
MakefileInspect captured patch +5 / −0
diff --git a/Makefile b/Makefile
index f9e10415..8c81f55f 100644
--- a/Makefile
+++ b/Makefile
@@ -1093,3 +1093,8 @@ ccan-rune-rune.o: $(CCANDIR)/ccan/rune/rune.c
@$(call VERBOSE, "cc $<", $(CC) $(CFLAGS) -c -o $@ $<)
ccan-rune-coding.o: $(CCANDIR)/ccan/rune/coding.c
@$(call VERBOSE, "cc $<", $(CC) $(CFLAGS) -c -o $@ $<)
+
+print-binary-sizes: $(ALL_PROGRAMS) $(ALL_TEST_PROGRAMS)
+ @find $(ALL_PROGRAMS) $(ALL_TEST_PROGRAMS) -printf '%p\t%s\n'
+ @echo 'Total program size: '`find $(ALL_PROGRAMS) -printf '%s\n' | awk '{TOTAL+= $$1} END {print TOTAL}'`
+ @echo 'Total tests size: '`find $(ALL_TEST_PROGRAMS) -printf '%s\n' | awk '{TOTAL+= $$1} END {print TOTAL}'`
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.