From f5a86afd19b3c2feaf470eb001a636beb1d72947 Mon Sep 17 00:00:00 2001 From: Duncan Bellamy Date: Sun, 27 Dec 2020 22:36:02 +0000 Subject: [Feature] allow hyperscan for aarch64 --- src/hs_helper.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/hs_helper.c') 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); -- cgit v1.2.3