Skip to content

Commit

Permalink
BUILD: makefile: build flags.c before haproxy to speed up the build
Browse files Browse the repository at this point in the history
The end of the build is often super slow. In practice it's flags.o that
now takes ages (3.4 seconds) and blocks everything on a single core at
the end. Let's declare it before the haproxy target so that it starts
earlier. On a quad-2.2 GHz CPU, the build time goes down from 44 to 42s
and the end feels less painful.
  • Loading branch information
wtarreau committed Nov 20, 2024
1 parent 667ac8a commit f16edcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ all:
@echo
@exit 1
else
all: haproxy dev/flags/flags $(EXTRA)
all: dev/flags/flags haproxy $(EXTRA)
endif # obsolete targets
endif # TARGET
Expand Down

0 comments on commit f16edcd

Please sign in to comment.