aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs_helper.c
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2020-12-27 22:36:02 +0000
committerDuncan Bellamy <dunk@denkimushi.com>2020-12-28 23:02:57 +0000
commitf5a86afd19b3c2feaf470eb001a636beb1d72947 (patch)
treeec5ed40c74361d2e8ed70fbc52084e55426a72e6 /src/hs_helper.c
parentd6fcb8bd182e9646166ef446a1dfd03eff6417f0 (diff)
downloadrspamd-f5a86afd19b3c2feaf470eb001a636beb1d72947.tar.gz
rspamd-f5a86afd19b3c2feaf470eb001a636beb1d72947.zip
[Feature] allow hyperscan for aarch64
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r--src/hs_helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hs_helper.c b/src/hs_helper.c
index 1f915b01b..f4f00cf05 100644
--- a/src/hs_helper.c
+++ b/src/hs_helper.c
@@ -254,11 +254,13 @@ static gboolean
rspamd_rs_compile (struct hs_helper_ctx *ctx, struct rspamd_worker *worker,
gboolean forced)
{
+#ifndef __aarch64__
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;
}
+#endif
if (!rspamd_hs_helper_cleanup_dir (ctx, forced)) {
msg_warn ("cannot cleanup cache dir '%s'", ctx->hs_dir);