diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-10 13:21:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-12-10 13:21:24 +0000 |
commit | 0c7d5f32de56ee254c4b1abc63e7c3709afd1cb2 (patch) | |
tree | afe973175961f6ce35d98ec5ff5f366d59ece1f8 | |
parent | e80ac859a73deaf75da180e2446d62134b7f36ab (diff) | |
download | rspamd-0c7d5f32de56ee254c4b1abc63e7c3709afd1cb2.tar.gz rspamd-0c7d5f32de56ee254c4b1abc63e7c3709afd1cb2.zip |
[Minor] Try to fix build on non x86 architectures
-rw-r--r-- | src/libcryptobox/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcryptobox/CMakeLists.txt b/src/libcryptobox/CMakeLists.txt index 637bfded9..0ca8a2fdd 100644 --- a/src/libcryptobox/CMakeLists.txt +++ b/src/libcryptobox/CMakeLists.txt @@ -32,12 +32,12 @@ SET(ASM_CODE " ") ASM_OP(HAVE_DOLLARMACRO "dollar macro convention") -IF(NOT HAVE_SLASHMACRO AND NOT HAVE_DOLLARMACRO) - MESSAGE(FATAL_ERROR "Your assembler cannot compile macros, please check your CMakeFiles/CMakeError.log") -ENDIF() - # For now we support only x86_64 architecture with optimizations IF("${ARCH}" STREQUAL "x86_64") + IF(NOT HAVE_SLASHMACRO AND NOT HAVE_DOLLARMACRO) + MESSAGE(FATAL_ERROR "Your assembler cannot compile macros, please check your CMakeFiles/CMakeError.log") + ENDIF() + SET(ASM_CODE "vpaddq %ymm0, %ymm0, %ymm0") ASM_OP(HAVE_AVX2 "avx2") SET(ASM_CODE "vpaddq %xmm0, %xmm0, %xmm0") |