Skip to content

Commit

Permalink
Try passing OPTFLAGS= to pgvector make (#118)
Browse files Browse the repository at this point in the history
Otherwise it is defaulting to march=native which won't be portable and
also seems to be failing to build.

Co-authored-by: Elvis Pranskevichus <[email protected]>
  • Loading branch information
msullivan and elprans authored Oct 21, 2024
1 parent 4b606a6 commit e59237b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 50 deletions.
8 changes: 8 additions & 0 deletions edgedbpkg/pgext/pgvector/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

from edgedbpkg import pgext

from metapkg import packages
from metapkg import targets


class PgVector(pgext.PostgresCExtension):
title = "pgvector extension"
Expand All @@ -23,3 +26,8 @@ class PgVector(pgext.PostgresCExtension):
@property
def supports_out_of_tree_builds(self) -> bool:
return False

def get_make_args(self, build: targets.Build) -> packages.Args:
return super().get_make_args(build) | {
"OPTFLAGS": "",
}

This file was deleted.

This file was deleted.

0 comments on commit e59237b

Please sign in to comment.