diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:35:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:35:11 +0000 |
commit | da76459dc21b5af2449af2d36eb95226cb186ce2 (patch) | |
tree | 542ebb3c1e796fac2742495b8437331727bbbfa0 /src/version.c | |
parent | Initial commit. (diff) | |
download | haproxy-da76459dc21b5af2449af2d36eb95226cb186ce2.tar.xz haproxy-da76459dc21b5af2449af2d36eb95226cb186ce2.zip |
Adding upstream version 2.6.12.upstream/2.6.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/version.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c new file mode 100644 index 0000000..e7bb748 --- /dev/null +++ b/src/version.c @@ -0,0 +1,28 @@ +/* + * Version reporting : all user-visible version information should come from + * this file so that rebuilding only this one is enough to report the latest + * code version. + */ + +#include <haproxy/global.h> +#include <haproxy/version.h> + +/* These ones are made variables and not constants so that they are stored into + * the data region and prominently appear in core files. + */ +char haproxy_version_here[] = "HAProxy version follows"; +char haproxy_version[] = HAPROXY_VERSION; +char haproxy_date[] = HAPROXY_DATE; +char stats_version_string[] = STATS_VERSION_STRING; + +#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) +#define SANITIZE_STRING " with address sanitizer" +#else +#define SANITIZE_STRING "" +#endif + +#if defined(__clang_version__) +REGISTER_BUILD_OPTS("Built with clang compiler version " __clang_version__ "" SANITIZE_STRING); +#elif defined(__VERSION__) +REGISTER_BUILD_OPTS("Built with gcc compiler version " __VERSION__ "" SANITIZE_STRING); +#endif |