mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
9 lines
296 B
CMake
9 lines
296 B
CMake
if (ARCH_AMD64)
|
|
add_library(memcpy STATIC memcpy.cpp)
|
|
|
|
# We allow to include memcpy.h from user code for better inlining.
|
|
target_include_directories(memcpy PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
|
|
|
target_compile_options(memcpy PRIVATE -fno-builtin-memcpy)
|
|
endif ()
|