mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-14 00:04:00 -05:00
MINOR: init: report the compiler version in haproxy -vv
Some portability issues were met a few times in the past depending on compiler versions, but this one was not reported in haproxy -vv output while it's trivial to add it. This patch tries to be the most accurate by explicitly reporting the clang version if detected, otherwise the gcc version.
This commit is contained in:
parent
3eb10b8e98
commit
bb1b63c079
1 changed files with 5 additions and 0 deletions
|
|
@ -3692,6 +3692,11 @@ int main(int argc, char **argv)
|
|||
exit(0);
|
||||
}
|
||||
|
||||
#if defined(__clang_version__)
|
||||
REGISTER_BUILD_OPTS("Built with clang compiler version " __clang_version__);
|
||||
#elif defined(__VERSION__)
|
||||
REGISTER_BUILD_OPTS("Built with gcc compiler version " __VERSION__);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
|
|
|||
Loading…
Reference in a new issue