mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-05 04:56:10 +02:00
MINOR: version: put the compiler version output into version.c not haproxy.c
For an unknown reason in commit bb1b63c079 I placed the compiler version output in haproxy.c instead of version.c. Better have it in version.c which is more suitable to this sort of things.
This commit is contained in:
parent
da21ed1662
commit
88bd9ee6a3
@ -3773,12 +3773,6 @@ int main(int argc, char **argv)
|
||||
deinit_and_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:
|
||||
* c-indent-level: 8
|
||||
|
||||
@ -13,3 +13,9 @@ 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 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user