diff options
Diffstat (limited to 'src/libcryptobox/CMakeLists.txt')
-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") |