Switched to compiling for portability by default

This commit is contained in:
Andrew Kane committed 2026-11-24 12:02:21 -08:00
1 parent 693041b0a7
commit d76e4cbfb4
2 files changed
+2 -21

No files matched your search

+1 -1
View File
@@ -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
+1 -20
View File
@@ -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