Skip to content

Commit 2cac196

Browse files
committed
fix: patch pgvector to compile using clang
1 parent 9417e30 commit 2cac196

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/orioledb/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,8 @@ RUN tar -xvf /tmp/pgvector.tar.gz -C /tmp && \
723723
rm -rf /tmp/pgvector.tar.gz
724724
# Build from source
725725
WORKDIR /tmp/pgvector-${pgvector_release}
726+
# error: the clang compiler does not support '-march=native'
727+
RUN sed -i -e "s|-march=native||g" Makefile
726728
RUN --mount=type=cache,target=/ccache,from=public.ecr.aws/supabase/postgres:ccache \
727729
make -j$(nproc)
728730
# Create debian package

0 commit comments

Comments
 (0)