diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-25 14:55:51 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-03-25 14:55:51 +0000 |
commit | a78ea818c2557446959b6a6ed414becb5f9b209d (patch) | |
tree | b4c6280f3caa9326d3ec03b08a6191179edd4569 /src/rspamd.c | |
parent | 266daff34bfd4c7bd6548098ca98ed0e6289488a (diff) | |
download | rspamd-a78ea818c2557446959b6a6ed414becb5f9b209d.tar.gz rspamd-a78ea818c2557446959b6a6ed414becb5f9b209d.zip |
[Minor] Print important Rspamd definitions in `-v` output
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 464dff9f9..afc027080 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -14,6 +14,7 @@ * limitations under the License. */ #include "config.h" +#include "blas-config.h" #include "rspamd.h" #include "libserver/maps/map.h" #include "lua/lua_common.h" @@ -1270,9 +1271,40 @@ static void version (void) { #if defined(GIT_VERSION) && GIT_VERSION == 1 - rspamd_printf ("Rspamd daemon version " RVERSION "-git." RID "\n"); + rspamd_printf ("Rspamd daemon version " RVERSION "-git." RID "\n\n"); #else - rspamd_printf ("Rspamd daemon version " RVERSION "\n"); + rspamd_printf ("Rspamd daemon version " RVERSION "\n\n"); +#endif +#ifdef WITH_HYPERSCAN + rspamd_printf ("Hyperscan enabled: TRUE\n"); +#else + rspamd_printf ("Hyperscan enabled: FALSE\n"); +#endif + +#ifdef WITH_JEMALLOC + rspamd_printf ("Jemalloc enabled: TRUE\n"); +#else + rspamd_printf ("Jemalloc enabled: FALSE\n"); +#endif +#ifdef WITH_LUAJIT + rspamd_printf ("LuaJIT enabled: TRUE\n"); +#else + rspamd_printf ("LuaJIT enabled: FALSE\n"); +#endif +#ifdef WITH_LUAJIT + rspamd_printf ("LuaJIT enabled: TRUE\n"); +#else + rspamd_printf ("LuaJIT enabled: FALSE\n"); +#endif +#if __has_feature(address_sanitizer) + rspamd_printf ("ASAN enabled: TRUE\n"); +#else + rspamd_printf ("ASAN enabled: FALSE\n"); +#endif +#ifdef HAVE_CBLAS + rspamd_printf ("BLAS enabled: TRUE\n"); +#else + rspamd_printf ("BLAS enabled: FALSE\n"); #endif } |