]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: build flags.c before haproxy to speed up the build
authorWilly Tarreau <w@1wt.eu>
Wed, 20 Nov 2024 16:34:36 +0000 (17:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Nov 2024 17:49:56 +0000 (18:49 +0100)
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.

Makefile

index 6a9f84cf3f46c621ff018ec52cc997c6589c04a7..09260ca6265e5a082d2551868ee6eacdd4f6cca9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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