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/libserver/maps | |
parent | d6fcb8bd182e9646166ef446a1dfd03eff6417f0 (diff) | |
download | rspamd-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.c | 4 |
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 +} |