]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Refuse to build with broken assembler
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 28 Nov 2016 18:14:16 +0000 (18:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 28 Nov 2016 18:14:16 +0000 (18:14 +0000)
src/libcryptobox/CMakeLists.txt

index 89b42b72698b4d248df33552bc72796def1f55f0..637bfded9d34bb834eb80927d9787e65454406f3 100644 (file)
@@ -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")