Another compile fix

This commit is contained in:
Robert Schulze 2023-08-21 11:12:39 +00:00
parent 7ade17516f
commit 2c330516b8
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
3 changed files with 8 additions and 1 deletions

View File

@ -198,7 +198,7 @@ endif()
add_contrib (annoy-cmake annoy)
option(ENABLE_USEARCH "Enable USearch (Approximate Neighborhood Search, HNSW) support" ${ENABLE_LIBRARIES})
if (ENABLE_USEARCH AND NOT ARCH_RISCV64)
if (ENABLE_USEARCH)
add_contrib (FP16-cmake FP16)
add_contrib (robin-map-cmake robin-map)
add_contrib (SimSIMD-cmake SimSIMD)

View File

@ -1,5 +1,8 @@
#ifdef ENABLE_USEARCH
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpass-failed"
#include <Storages/MergeTree/MergeTreeIndexUSearch.h>
#include <Columns/ColumnArray.h>

View File

@ -4,7 +4,10 @@
#include <Storages/MergeTree/ApproximateNearestNeighborIndexesCommon.h>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpass-failed"
#include <usearch/index_dense.hpp>
#pragma clang diagnostic pop
namespace DB
{
@ -98,5 +101,6 @@ private:
}
#endif