diff --git a/dbms/CMakeLists.txt b/dbms/CMakeLists.txt index 821e2288fc8..e734f46c492 100644 --- a/dbms/CMakeLists.txt +++ b/dbms/CMakeLists.txt @@ -215,7 +215,7 @@ target_link_libraries(tiflash_vector_search tiflash_contrib::usearch tiflash_contrib::simsimd - fmt + fmt ) target_link_libraries (dbms diff --git a/dbms/src/VectorSearch/SimSIMD.h b/dbms/src/VectorSearch/SimSIMD.h index 274809aa81d..89ebb06983c 100644 --- a/dbms/src/VectorSearch/SimSIMD.h +++ b/dbms/src/VectorSearch/SimSIMD.h @@ -25,8 +25,13 @@ #define SIMSIMD_DYNAMIC_DISPATCH 0 // Force enable all target features. We will do our own dynamic dispatch. +#if defined(__APPLE__) +#define SIMSIMD_TARGET_NEON 0 +#define SIMSIMD_TARGET_SVE 0 +#else #define SIMSIMD_TARGET_NEON 1 #define SIMSIMD_TARGET_SVE 1 +#endif #define SIMSIMD_TARGET_HASWELL 1 #define SIMSIMD_TARGET_SKYLAKE 1 #define SIMSIMD_TARGET_ICE 1 diff --git a/dbms/src/VectorSearch/USearch.h b/dbms/src/VectorSearch/USearch.h index 4e47e06bd88..78fb78523af 100644 --- a/dbms/src/VectorSearch/USearch.h +++ b/dbms/src/VectorSearch/USearch.h @@ -22,8 +22,13 @@ #define SIMSIMD_NATIVE_BF16 0 // Force enable all target features. +#if defined(__APPLE__) +#define SIMSIMD_TARGET_NEON 0 +#define SIMSIMD_TARGET_SVE 0 +#else #define SIMSIMD_TARGET_NEON 1 #define SIMSIMD_TARGET_SVE 1 +#endif #define SIMSIMD_TARGET_HASWELL 1 #define SIMSIMD_TARGET_SKYLAKE 1 #define SIMSIMD_TARGET_ICE 1 @@ -34,7 +39,9 @@ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpass-failed" +#if !defined(__APPLE__) #include +#endif #include #include #include diff --git a/release-centos7-llvm/scripts/run-clang-tidy.py b/release-centos7-llvm/scripts/run-clang-tidy.py index ff2291c8aec..7245f11a1e1 100755 --- a/release-centos7-llvm/scripts/run-clang-tidy.py +++ b/release-centos7-llvm/scripts/run-clang-tidy.py @@ -360,5 +360,4 @@ def main(): if __name__ == '__main__': - sys.exit(0)# temporary skip clang-tidy main()