]> git.kaiwu.me - haproxy.git/commit
BUILD: makefile: add FAILFAST to select the -Wfatal-errors behavior
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 13:08:14 +0000 (15:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 15:33:28 +0000 (17:33 +0200)
commitfc27ed9f180179c68cff081241a2ba212dad5623
tree6551fd29e4c4d633b6c24b3df72897900308c844
parent617e646ec0140b58353fed5420ad1ef264448899
BUILD: makefile: add FAILFAST to select the -Wfatal-errors behavior

-Wfatal-errors is set by default and is not supported on older compilers.
Since it's part of all the automatically detected flags, it's painful to
remove when needed. Also it's a matter of taste, some developers might
prefer to get a long list of all errors at once, others prefer that the
build stops immediately after the root cause.

The default is now back to no -Wfatal-errors, and when FAILFAST is set to
any non-empty non-zero value, -Wfatal-errors is added:

 $ make TARGET=linux-glibc USE_OPENSSL=0 USE_QUIC=1 FAILFAST=0 2>&1 | wc
    132     536    6111

 $ make TARGET=linux-glibc USE_OPENSSL=0 USE_QUIC=1 FAILFAST=1 2>&1 | wc
      8      39     362
INSTALL
Makefile