Skip to content

Commit

Permalink
handle flags in make
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHend committed Jun 14, 2024
1 parent 451281a commit 8dd2cb1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extension/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ PGRX_PG_CONFIG =$(shell cargo pgrx info pg-config pg${PG_VERSION})
UPGRADE_FROM_VER:=0.16.0
BRANCH:=$(git rev-parse --abbrev-ref HEAD)
RUST_LOG:=debug
ARCH := $(shell uname -m)


.PHONY: install-pg_cron install-pg_vector install-pgmq run setup test-integration test-unit test-version test-branch test-upgrade cat-logs docs

Expand Down Expand Up @@ -77,6 +79,12 @@ install-pgmq:
cd .. && rm -rf pgmq

install-vectorscale:
@ARCH=$$(uname -m); \
if [ "$$ARCH" != "arm64" ]; then \
export RUSTFLAGS="-C target-feature=+avx2,+fma"; \
else \
echo "Running on arm64, no variable set"; \
fi; \
git clone https://github.com/timescale/pgvectorscale.git && \
cd pgvectorscale/pgvectorscale && \
cargo pgrx install --pg-config=${PGRX_PG_CONFIG} && \
Expand Down

0 comments on commit 8dd2cb1

Please sign in to comment.