chore: fix nightly coverage run-error (#417)

This commit is contained in:
ZeFeng Yin
2026-05-21 11:47:49 +08:00
committed by GitHub
parent 9bfc4b556a
commit bae0e1b763
11 changed files with 70 additions and 0 deletions
+7
View File
@@ -1,11 +1,18 @@
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
#message(STATUS "PROJECT_ROOT_DIR = ${PROJECT_ROOT_DIR}")
if(NOT APPLE)
set(CORE_KNN_FLAT_LDFLAGS
"-Wl,--exclude-libs,libparquet.a:libarrow.a:libarrow_bundled_dependencies.a")
endif()
cc_library(
NAME core_knn_flat
STATIC SHARED STRICT ALWAYS_LINK
SRCS *.cc
LIBS core_framework
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm ${PROJECT_ROOT_DIR}/src/core/framework
LDFLAGS "${CORE_KNN_FLAT_LDFLAGS}"
VERSION "${PROXIMA_ZVEC_VERSION}"
)
@@ -1,11 +1,20 @@
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
# --exclude-libs is GNU ld / LLVM lld only; Apple ld does not support it.
# On macOS (Mach-O), symbol interposition works differently and the
# Arrow/Parquet double-free issue does not apply.
if(NOT APPLE)
set(CORE_KNN_FLAT_SPARSE_LDFLAGS
"-Wl,--exclude-libs,libparquet.a:libarrow.a:libarrow_bundled_dependencies.a")
endif()
cc_library(
NAME core_knn_flat_sparse
STATIC SHARED STRICT ALWAYS_LINK
SRCS *.cc
LIBS core_framework
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm
LDFLAGS "${CORE_KNN_FLAT_SPARSE_LDFLAGS}"
VERSION "${PROXIMA_ZVEC_VERSION}"
)
+6
View File
@@ -1,11 +1,17 @@
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
if(NOT APPLE)
set(CORE_KNN_HNSW_LDFLAGS
"-Wl,--exclude-libs,libparquet.a:libarrow.a:libarrow_bundled_dependencies.a")
endif()
cc_library(
NAME core_knn_hnsw
STATIC SHARED STRICT ALWAYS_LINK
SRCS *.cc
LIBS core_framework sparsehash
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm
LDFLAGS "${CORE_KNN_HNSW_LDFLAGS}"
VERSION "${PROXIMA_ZVEC_VERSION}"
)
@@ -11,11 +11,17 @@ if(AUTO_DETECT_ARCH)
endforeach()
endif()
if(NOT APPLE)
set(CORE_KNN_HNSW_RABITQ_LDFLAGS
"-Wl,--exclude-libs,libparquet.a:libarrow.a:libarrow_bundled_dependencies.a")
endif()
cc_library(
NAME core_knn_hnsw_rabitq
STATIC SHARED STRICT ALWAYS_LINK
SRCS *.cc
LIBS core_framework rabitqlib sparsehash
INCS . ${PROJECT_ROOT_DIR}/src ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm
LDFLAGS "${CORE_KNN_HNSW_RABITQ_LDFLAGS}"
VERSION "${PROXIMA_ZVEC_VERSION}"
)
@@ -1,11 +1,17 @@
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
if(NOT APPLE)
set(CORE_KNN_HNSW_SPARSE_LDFLAGS
"-Wl,--exclude-libs,libparquet.a:libarrow.a:libarrow_bundled_dependencies.a")
endif()
cc_library(
NAME core_knn_hnsw_sparse
STATIC SHARED STRICT ALWAYS_LINK
SRCS *.cc
LIBS core_framework sparsehash
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm
LDFLAGS "${CORE_KNN_HNSW_SPARSE_LDFLAGS}"
VERSION "${PROXIMA_ZVEC_VERSION}"
)
+6
View File
@@ -1,10 +1,16 @@
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
if(NOT APPLE)
set(CORE_KNN_IVF_LDFLAGS
"-Wl,--exclude-libs,libparquet.a:libarrow.a:libarrow_bundled_dependencies.a")
endif()
cc_library(
NAME core_knn_ivf STATIC SHARED STRICT ALWAYS_LINK
SRCS *.cc
LIBS zvec_ailego core_framework core_knn_cluster
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm
LDFLAGS "${CORE_KNN_IVF_LDFLAGS}"
VERSION "${PROXIMA_ZVEC_VERSION}"
)
+6
View File
@@ -1,11 +1,17 @@
include(${PROJECT_ROOT_DIR}/cmake/bazel.cmake)
include(${PROJECT_ROOT_DIR}/cmake/option.cmake)
if(NOT APPLE)
set(CORE_KNN_VAMANA_LDFLAGS
"-Wl,--exclude-libs,libparquet.a:libarrow.a:libarrow_bundled_dependencies.a")
endif()
cc_library(
NAME core_knn_vamana
STATIC SHARED STRICT ALWAYS_LINK
SRCS *.cc
LIBS core_framework core_knn_hnsw sparsehash
INCS . ${PROJECT_ROOT_DIR}/src/core ${PROJECT_ROOT_DIR}/src/core/algorithm
LDFLAGS "${CORE_KNN_VAMANA_LDFLAGS}"
VERSION "${PROXIMA_ZVEC_VERSION}"
)