From: Vsevolod Stakhov Date: Mon, 28 Nov 2016 18:14:16 +0000 (+0000) Subject: [Minor] Refuse to build with broken assembler X-Git-Tag: 1.4.1~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db68f055ebdcf221dce13dd10dfff1d881023f84;p=rspamd.git [Minor] Refuse to build with broken assembler --- diff --git a/src/libcryptobox/CMakeLists.txt b/src/libcryptobox/CMakeLists.txt index 89b42b726..637bfded9 100644 --- a/src/libcryptobox/CMakeLists.txt +++ b/src/libcryptobox/CMakeLists.txt @@ -32,6 +32,10 @@ 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") SET(ASM_CODE "vpaddq %ymm0, %ymm0, %ymm0")