]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: thread: properly report multi-thread support
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2018 15:48:14 +0000 (16:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2018 15:48:14 +0000 (16:48 +0100)
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.

src/hathreads.c

index d9128a7fd8d8793ecae33e30b46d9b1a7f02df25..39ff7e8288db241da85c6e10c22e56b338007b49 100644 (file)
@@ -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.");