ClickHouse/utils/memcpy-bench/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.0 KiB
CMake
Raw Normal View History

2023-05-06 17:06:44 +00:00
# memcpy_jart.S contains position dependent code
if (CMAKE_POSITION_INDEPENDENT_CODE OR NOT OS_LINUX OR NOT ARCH_AMD64)
2023-05-07 06:54:21 +00:00
message (WARNING "Not building memcpy-bench due to PIC enabled or not Linux or not x86")
2023-05-06 17:06:44 +00:00
return ()
endif ()
2021-03-08 09:04:52 +00:00
enable_language(ASM)
2021-03-14 16:52:51 +00:00
clickhouse_add_executable (memcpy-bench
2021-03-14 16:52:51 +00:00
memcpy-bench.cpp
FastMemcpy.cpp
FastMemcpy_Avx.cpp
memcpy_jart.S
glibc/memcpy-ssse3.S
glibc/memcpy-ssse3-back.S
glibc/memmove-sse2-unaligned-erms.S
glibc/memmove-avx-unaligned-erms.S
glibc/memmove-avx512-unaligned-erms.S
glibc/memmove-avx512-no-vzeroupper.S
)
add_compile_options(memcpy-bench PRIVATE -fno-tree-loop-distribute-patterns)
if (OS_SUNOS)
2021-10-11 22:47:34 +00:00
target_compile_options(memcpy-bench PRIVATE "-Wa,--divide")
endif()
2021-03-14 16:52:51 +00:00
set_source_files_properties(FastMemcpy.cpp PROPERTIES COMPILE_FLAGS "-Wno-old-style-cast")
set_source_files_properties(FastMemcpy_Avx.cpp PROPERTIES COMPILE_FLAGS "-mavx -Wno-old-style-cast -Wno-cast-qual -Wno-cast-align")
target_link_libraries(memcpy-bench PRIVATE dbms boost::program_options)
2021-03-08 09:04:52 +00:00