aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/maps
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/libserver/maps
parentd6fcb8bd182e9646166ef446a1dfd03eff6417f0 (diff)
downloadrspamd-f5a86afd19b3c2feaf470eb001a636beb1d72947.tar.gz
rspamd-f5a86afd19b3c2feaf470eb001a636beb1d72947.zip
[Feature] allow hyperscan for aarch64
Diffstat (limited to 'src/libserver/maps')
-rw-r--r--src/libserver/maps/map_helpers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/maps/map_helpers.c b/src/libserver/maps/map_helpers.c
index 13a34201f..c2bfe1292 100644
--- a/src/libserver/maps/map_helpers.c
+++ b/src/libserver/maps/map_helpers.c
@@ -1280,11 +1280,13 @@ rspamd_re_map_finalize (struct rspamd_regexp_map_helper *re_map)
map = re_map->map;
+#ifndef __aarch64__
if (!(map->cfg->libs_ctx->crypto_ctx->cpu_config & CPUID_SSSE3)) {
msg_info_map ("disable hyperscan for map %s, ssse3 instructons are not supported by CPU",
map->name);
return;
}
+#endif
if (hs_populate_platform (&plt) != HS_SUCCESS) {
msg_err_map ("cannot populate hyperscan platform");
@@ -1940,4 +1942,4 @@ rspamd_match_cdb_map (struct rspamd_cdb_map_helper *map,
}
return NULL;
-} \ No newline at end of file
+}