mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 22:31:28 +02:00
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.
This commit is contained in:
parent
6818595b57
commit
8459f25e03
@ -113,6 +113,12 @@ static void __hathreads_init(void)
|
|||||||
#endif
|
#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
|
#endif // USE_THREAD
|
||||||
|
|
||||||
|
|
||||||
@ -148,5 +154,3 @@ int parse_nbthread(const char *arg, char **err)
|
|||||||
#endif
|
#endif
|
||||||
return nbthread;
|
return nbthread;
|
||||||
}
|
}
|
||||||
|
|
||||||
REGISTER_BUILD_OPTS("Built with multi-threading support.");
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user