mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-10 16:00:08 +00:00
MINOR: show PCRE version and JIT status in -vv
haproxy -vv shows build informations about USE flags and lib versions. This patch introduces informations about PCRE and the new JIT feature. It also makes USE_PCRE_JIT=1 appear in the haproxy -vv "OPTIONS". This is useful since with the introduction of JIT we will see libpcre related issues.
This commit is contained in:
parent
8d1c5164f3
commit
ea68d36e0b
1
Makefile
1
Makefile
@ -562,6 +562,7 @@ endif
|
||||
# JIT PCRE
|
||||
ifneq ($(USE_PCRE_JIT),)
|
||||
OPTIONS_CFLAGS += -DUSE_PCRE_JIT
|
||||
BUILD_OPTIONS += $(call ignore_implicit,USE_PCRE_JIT)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
@ -289,6 +289,20 @@ void display_build_opts()
|
||||
#else /* USE_OPENSSL */
|
||||
printf("Built without OpenSSL support (USE_OPENSSL not set)\n");
|
||||
#endif
|
||||
|
||||
#ifdef USE_PCRE
|
||||
printf("Built with PCRE version : %s", pcre_version());
|
||||
printf("\nPCRE library supports JIT : "
|
||||
#ifndef USE_PCRE_JIT
|
||||
"no (USE_PCRE_JIT not set)"
|
||||
#else
|
||||
"yes"
|
||||
#endif
|
||||
"\n");
|
||||
#else
|
||||
printf("Built without PCRE support (using libc's regex instead)\n");
|
||||
#endif
|
||||
|
||||
putchar('\n');
|
||||
|
||||
list_pollers(stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user