diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ce77a77..ce7c0625 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -137,6 +137,6 @@ jobs: with: postgres-version: 19 check-ub: yes - - run: make OPTFLAGS="" + - run: make - run: sudo --preserve-env=PG_CONFIG make install - run: make installcheck diff --git a/Makefile b/Makefile index 8f0f75b8..dc6a7403 100644 --- a/Makefile +++ b/Makefile @@ -11,26 +11,7 @@ TESTS = $(wildcard test/sql/*.sql) REGRESS = $(patsubst test/sql/%.sql,%,$(TESTS)) REGRESS_OPTS = --inputdir=test --load-extension=$(EXTENSION) -# To compile for portability, run: make OPTFLAGS="" -OPTFLAGS = -march=native - -# Mac ARM doesn't always support -march=native -ifeq ($(shell uname -s), Darwin) - ifeq ($(shell uname -p), arm) - # no difference with -march=armv8.5-a - OPTFLAGS = - endif -endif - -# PowerPC doesn't support -march=native -ifneq ($(filter ppc64%, $(shell uname -m)), ) - OPTFLAGS = -endif - -# RISC-V64 doesn't support -march=native -ifeq ($(shell uname -m), riscv64) - OPTFLAGS = -endif +OPTFLAGS = # For auto-vectorization: # - GCC (needs -ftree-vectorize OR -O3) - https://gcc.gnu.org/projects/tree-ssa/vectorization.html