mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-15 16:04:37 +00:00
CLEANUP: lua: use the build options list to report it
This removes 1 #ifdef from haproxy.c. The "build without" version is not reported anymore now.
This commit is contained in:
parent
ba96291600
commit
bb57d94a96
@ -425,12 +425,6 @@ static void display_build_opts()
|
||||
printf("Built without PCRE support (using libc's regex instead)\n");
|
||||
#endif
|
||||
|
||||
#ifdef USE_LUA
|
||||
printf("Built with Lua version : %s\n", LUA_RELEASE);
|
||||
#else
|
||||
printf("Built without Lua support\n");
|
||||
#endif
|
||||
|
||||
list_for_each_entry(item, &build_opts_list, list) {
|
||||
puts(item->str);
|
||||
}
|
||||
|
@ -7703,3 +7703,11 @@ void hlua_init(void)
|
||||
|
||||
RESET_SAFE_LJMP(gL.T);
|
||||
}
|
||||
|
||||
__attribute__((constructor))
|
||||
static void __hlua_init(void)
|
||||
{
|
||||
char *ptr = NULL;
|
||||
memprintf(&ptr, "Built with Lua version : %s", LUA_RELEASE);
|
||||
hap_register_build_opts(ptr, 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user