Optimize hash performance with custom compiler flags

This commit is contained in:
Andrea Mazzoleni 2026-09-30 13:31:34 +02:00
parent 426f6dc0bc
commit f0ae584473

View file

@ -219,6 +219,9 @@ $(CLI_PREFIX)touch.$(OBJEXT): $(CLI_INCLUDES)
$(CLI_PREFIX)unixapp.$(OBJEXT): $(CLI_INCLUDES)
$(CLI_PREFIX)util.$(OBJEXT): $(CLI_INCLUDES)
# Use -O3 -funroll-loops to optimize the hash implementations included by util.c
$(CLI_PREFIX)util.$(OBJEXT): CFLAGS += -O3 -funroll-loops
# Add the .version file in the distribution
dist-hook:
$(srcdir)/autover.sh > $(distdir)/.version