]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: Makefile: speed up compiler options detection
authorWilly Tarreau <w@1wt.eu>
Wed, 3 Oct 2018 07:52:51 +0000 (09:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 Oct 2018 07:55:53 +0000 (09:55 +0200)
commitf11ca5e7a43c772637018ec2ad981a9fd7d3816f
treed064e3add366c5e34de868b7e7edc881f9f2f17e
parenta8b12c6bb73b924f6429c3ae4d20b96992e92c2e
BUILD: Makefile: speed up compiler options detection

Commits b78016649 and d3a7f4035 brought the ability to detect the build
options and warnings that the compiler supports. However, they're detected
using "$(CC) -c", which is 50% slower than "$(CC) -E" for the same result,
just because it starts the assembler at the end. Given that we're starting
to check for a number of warnings, this detection alone starts to become
visible, taking a bit more than 300 ms on the build time. Let's switch to
-E instead to shrink this incompressible time by roughly 100 ms.
Makefile