Skip to content

Commit f16edcd

Browse files
committed
BUILD: makefile: build flags.c before haproxy to speed up the build
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.
1 parent 667ac8a commit f16edcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ all:
936936
@echo
937937
@exit 1
938938
else
939-
all: haproxy dev/flags/flags $(EXTRA)
939+
all: dev/flags/flags haproxy $(EXTRA)
940940
endif # obsolete targets
941941
endif # TARGET
942942

0 commit comments

Comments
 (0)