diff options
Diffstat (limited to 'contrib/fastutf8/CMakeLists.txt')
-rw-r--r-- | contrib/fastutf8/CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/fastutf8/CMakeLists.txt b/contrib/fastutf8/CMakeLists.txt index f2570bc50..2a98ed815 100644 --- a/contrib/fastutf8/CMakeLists.txt +++ b/contrib/fastutf8/CMakeLists.txt @@ -1,13 +1,11 @@ SET(UTFSRC ${CMAKE_CURRENT_SOURCE_DIR}/fastutf8.c) -IF(HAVE_AVX2) +IF(HAVE_AVX2 AND "${ARCH}" STREQUAL "x86_64") SET(UTFSRC ${UTFSRC} ${CMAKE_CURRENT_SOURCE_DIR}/avx2.c) MESSAGE(STATUS "UTF8: AVX2 support is added") ENDIF() -IF(HAVE_SSE41) +IF(HAVE_SSE41 AND "${ARCH}" STREQUAL "x86_64") SET(UTFSRC ${UTFSRC} ${CMAKE_CURRENT_SOURCE_DIR}/sse41.c) MESSAGE(STATUS "UTF8: SSE41 support is added") ENDIF() -CONFIGURE_FILE(platform_config.h.in platform_config.h) - ADD_LIBRARY(rspamd-fastutf8 STATIC ${UTFSRC})
\ No newline at end of file |