mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
b7ef5a699c
* Get rid of non-existent vectorclass * Move FastMemcpy to contribs * Restore comments * Disable FastMemcpy on non-Linux * Fix cmake file * Don't build FastMemcpy for ARM64 * Replace FastMemcpy submodule with its contents * Fix cmake file * Move widechar_width to contrib/ * Move sumbur to contrib/ * Move consistent-hashing to contrib/ * Fix UBSan tests
29 lines
725 B
CMake
29 lines
725 B
CMake
option (ENABLE_FASTMEMCPY "Enable FastMemcpy library (only internal)" ${ENABLE_LIBRARIES})
|
|
|
|
if (NOT OS_LINUX OR ARCH_AARCH64)
|
|
set (ENABLE_FASTMEMCPY OFF)
|
|
endif ()
|
|
|
|
if (ENABLE_FASTMEMCPY)
|
|
set (LIBRARY_DIR ${ClickHouse_SOURCE_DIR}/contrib/FastMemcpy)
|
|
|
|
set (SRCS
|
|
${LIBRARY_DIR}/FastMemcpy.c
|
|
|
|
memcpy_wrapper.c
|
|
)
|
|
|
|
add_library (FastMemcpy ${SRCS})
|
|
target_include_directories (FastMemcpy PUBLIC ${LIBRARY_DIR})
|
|
|
|
target_compile_definitions(FastMemcpy PUBLIC USE_FASTMEMCPY=1)
|
|
|
|
message (STATUS "Using FastMemcpy")
|
|
else ()
|
|
add_library (FastMemcpy INTERFACE)
|
|
|
|
target_compile_definitions(FastMemcpy INTERFACE USE_FASTMEMCPY=0)
|
|
|
|
message (STATUS "Not using FastMemcpy")
|
|
endif ()
|