Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: SchrodingerZhu <[email protected]>
  • Loading branch information
SchrodingerZhu committed Jun 25, 2022
1 parent d27fd98 commit 4a5b7cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion contrib/arm-optimized-routines-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ set(TIFLASH_AOR_DIR ../arm-optimized-routines)
file(GLOB TIFLASH_AARCH64_STRING_FILES ${TIFLASH_AOR_DIR}/string/aarch64/*.S)
add_library(tiflash-aarch64-string STATIC ${TIFLASH_AARCH64_STRING_FILES} src/aor.c)
target_compile_options(tiflash-aarch64-string PRIVATE -march=armv8-a+sve)
target_link_libraries(tiflash-aarch64-string PUBLIC cpu_features)
target_include_directories(tiflash-aarch64-string PRIVATE ${TIFLASH_AOR_DIR}/string/include)

file(GLOB TIFLASH_AARCH64_MATH_FILES ${TIFLASH_AOR_DIR}/math/*.c)
Expand Down
4 changes: 4 additions & 0 deletions libs/libcommon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,7 @@ if (ARCH_AMD64)
src/crc64_sse2_asimd.cpp
APPEND COMPILE_FLAGS "-mpclmul")
endif()

if (ARCH_AARCH64 AND ARCH_LINUX)
target_link_libraries (common PUBLIC tiflash-aarch64-string tiflash-aarch64-math)
endif()

0 comments on commit 4a5b7cd

Please sign in to comment.