Use recommended pattern

This commit is contained in:
Andrew Kane
2021-05-06 02:17:30 -07:00
parent 3c820b5a50
commit efa85aaba1
3 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,6 +1,7 @@
/dist/ /dist/
/results/ /results/
/tmp_check/ /tmp_check/
/sql/vector--?.?.?.sql
regression.* regression.*
*.o *.o
*.so *.so

View File

@@ -22,6 +22,13 @@ PG_CFLAGS = $(OPTFLAGS) -ftree-vectorize -fassociative-math -fno-signed-zeros -f
# Debug Clang auto-vectorization # Debug Clang auto-vectorization
# PG_CFLAGS += -Rpass=loop-vectorize -Rpass-analysis=loop-vectorize # PG_CFLAGS += -Rpass=loop-vectorize -Rpass-analysis=loop-vectorize
all: sql/$(EXTENSION)--$(EXTVERSION).sql
sql/$(EXTENSION)--$(EXTVERSION).sql: sql/$(EXTENSION).sql
cp $< $@
EXTRA_CLEAN = sql/$(EXTENSION)--$(EXTVERSION).sql
PG_CONFIG ?= pg_config PG_CONFIG ?= pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs) PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS) include $(PGXS)