]> source.dussan.org Git - rspamd.git/commitdiff
Support i386 with optimizations 3934/head
authorxtkoba <69125751+xtkoba@users.noreply.github.com>
Wed, 13 Oct 2021 07:00:06 +0000 (16:00 +0900)
committerGitHub <noreply@github.com>
Wed, 13 Oct 2021 07:00:06 +0000 (16:00 +0900)
cmake/ArchDep.cmake

index 71f2422cac6bc88d3988ae5aa7be3e2ef1577393..8271709b6397e16d160ab49fe9fe88c501c3a9cb 100644 (file)
@@ -16,8 +16,8 @@ SET(ASM_CODE "
        ")
 ASM_OP(HAVE_DOLLARMACRO "dollar macro convention")
 
-# For now we support only x86_64 architecture with optimizations
-IF("${ARCH}" STREQUAL "x86_64")
+# For now we support only x86_64/i386 architecture with optimizations
+IF("${ARCH}" STREQUAL "x86_64" OR "${ARCH}" STREQUAL "i386")
     IF(NOT HAVE_SLASHMACRO AND NOT HAVE_DOLLARMACRO)
         MESSAGE(FATAL_ERROR "Your assembler cannot compile macros, please check your CMakeFiles/CMakeError.log")
     ENDIF()
@@ -99,4 +99,4 @@ IF ("${ARCH}" STREQUAL "x86_64")
     ELSEIF((CMAKE_C_COMPILER_ID MATCHES "MSVC"))
         ADD_COMPILE_OPTIONS(/arch:SSE2)
     ENDIF()
-ENDIF()
\ No newline at end of file
+ENDIF()