From db68f055ebdcf221dce13dd10dfff1d881023f84 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 28 Nov 2016 18:14:16 +0000 Subject: [PATCH] [Minor] Refuse to build with broken assembler --- src/libcryptobox/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) 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") -- 2.39.5