enable FastMemcpy properly

This commit is contained in:
Amos Bird 2020-09-30 23:23:01 +08:00 committed by alesapin
parent 078f7075ba
commit 6e23901227
3 changed files with 6 additions and 4 deletions

View File

@ -369,6 +369,12 @@ endif ()
include(cmake/dbms_glob_sources.cmake) include(cmake/dbms_glob_sources.cmake)
if (${ENABLE_LIBRARIES} OR ${GLIBC_COMPATIBILITY})
option (ENABLE_FASTMEMCPY "Enable FastMemcpy library (only internal)" ON)
else ()
option (ENABLE_FASTMEMCPY "Enable FastMemcpy library (only internal)" OFF)
endif ()
if (OS_LINUX OR OS_ANDROID) if (OS_LINUX OR OS_ANDROID)
include(cmake/linux/default_libs.cmake) include(cmake/linux/default_libs.cmake)
elseif (OS_DARWIN) elseif (OS_DARWIN)

View File

@ -1,6 +1,4 @@
if (GLIBC_COMPATIBILITY) if (GLIBC_COMPATIBILITY)
set (ENABLE_FASTMEMCPY ON)
enable_language(ASM) enable_language(ASM)
include(CheckIncludeFile) include(CheckIncludeFile)

View File

@ -1,5 +1,3 @@
option (ENABLE_FASTMEMCPY "Enable FastMemcpy library (only internal)" ${ENABLE_LIBRARIES})
if (NOT OS_LINUX OR ARCH_AARCH64) if (NOT OS_LINUX OR ARCH_AARCH64)
set (ENABLE_FASTMEMCPY OFF) set (ENABLE_FASTMEMCPY OFF)
endif () endif ()