diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-26 10:54:48 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-26 10:54:48 +0100 |
commit | 3307ad5d3a6d7aab44ec949796a2b4d2042539a0 (patch) | |
tree | 1713c408f7f6fe11b56a1440128cb2c3cf67557f /src/hs_helper.c | |
parent | 543152034c1fea79c4f8b3458c3b4a5c3f8a35cc (diff) | |
download | rspamd-3307ad5d3a6d7aab44ec949796a2b4d2042539a0.tar.gz rspamd-3307ad5d3a6d7aab44ec949796a2b4d2042539a0.zip |
[Fix] Do not compile hyperscan with no SSSE3 support
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r-- | src/hs_helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c index 94e50e721..208ebe4e4 100644 --- a/src/hs_helper.c +++ b/src/hs_helper.c @@ -181,6 +181,12 @@ rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker, static struct rspamd_srv_command srv_cmd; gint ncompiled; + if (!(ctx->cfg->libs_ctx->crypto_ctx->cpu_config & CPUID_SSSE3)) { + msg_warn ("CPU doesn't have SSSE3 instructions set " + "required for hyperscan, disable hyperscan compilation"); + return FALSE; + } + if (!rspamd_hs_helper_cleanup_dir (ctx, forced)) { msg_warn ("cannot cleanup cache dir '%s'", ctx->hs_dir); } |