diff options
author | Duncan Bellamy <dunk@denkimushi.com> | 2020-12-27 22:36:02 +0000 |
---|---|---|
committer | Duncan Bellamy <dunk@denkimushi.com> | 2020-12-28 23:02:57 +0000 |
commit | f5a86afd19b3c2feaf470eb001a636beb1d72947 (patch) | |
tree | ec5ed40c74361d2e8ed70fbc52084e55426a72e6 /src/hs_helper.c | |
parent | d6fcb8bd182e9646166ef446a1dfd03eff6417f0 (diff) | |
download | rspamd-f5a86afd19b3c2feaf470eb001a636beb1d72947.tar.gz rspamd-f5a86afd19b3c2feaf470eb001a636beb1d72947.zip |
[Feature] allow hyperscan for aarch64
Diffstat (limited to 'src/hs_helper.c')
-rw-r--r-- | src/hs_helper.c | 2 |
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); |