commit a78ea81: [Minor] Print important Rspamd definitions in `-v` output
Vsevolod Stakhov
vsevolod at rspamd.com
Sat Mar 25 15:00:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-03-25 14:55:51 +0000
URL: https://github.com/rspamd/rspamd/commit/a78ea818c2557446959b6a6ed414becb5f9b209d
[Minor] Print important Rspamd definitions in `-v` output
---
src/rspamd.c | 36 ++++++++++++++++++++++++++++++++++--
1 file 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
}
More information about the Commits
mailing list