]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: add detection for unsupported compiler models
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Jul 2022 07:55:22 +0000 (09:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Jul 2022 07:58:20 +0000 (09:58 +0200)
commit41afd9084e13fa834397f8f9925338223aaa4ed5
tree9560ee1dd4f410ee375977840cf522f5e92e33f7
parentd4835a9680126f0059349fc7d81b741dc29a7428
BUILD: add detection for unsupported compiler models

As reported in github issue #1765, some people get trapped into building
haproxy and companion libraries on Windows using a compiler following the
LLP64 model. This has no chance to work, and definitely causes nasty bugs
everywhere when pointers are passed as longs. Let's save them time and
detect this at boot time.

The message and detection was factored with the existing one for -fwrapv
since we need the same info and actions.

This should be backported to all recent supported versions (the ones
that are likely to be tried on such platforms when people don't know).
src/haproxy.c