From: Willy Tarreau Date: Sat, 15 Dec 2018 15:48:14 +0000 (+0100) Subject: BUILD: thread: properly report multi-thread support X-Git-Tag: v1.9-dev11~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8459f25e03ec89433e70368e2dacf59e81507112;p=thirdparty%2Fhaproxy.git BUILD: thread: properly report multi-thread support When refactoring the build option strings in 1.9, the thread support was placed outside of the ifdef block resulting in threads always being mentioned even if that was not true. Let's fix this and also mention when threads are disabled to help troubleshooting. --- diff --git a/src/hathreads.c b/src/hathreads.c index d9128a7fd8..39ff7e8288 100644 --- a/src/hathreads.c +++ b/src/hathreads.c @@ -113,6 +113,12 @@ static void __hathreads_init(void) #endif } +REGISTER_BUILD_OPTS("Built with multi-threading support."); + +#else + +REGISTER_BUILD_OPTS("Built without multi-threading support (USE_THREAD not set)."); + #endif // USE_THREAD @@ -148,5 +154,3 @@ int parse_nbthread(const char *arg, char **err) #endif return nbthread; } - -REGISTER_BUILD_OPTS("Built with multi-threading support.");