pgvector.git / summary / log / commit / refs
commit e1f3caba498698aca300bca27cf633006f99d5fa
Author: Andrew Kane <andrew@ankane.org>
Date: Sun May 02 21:49:34 2021 +0000
Added OPTFLAGS
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index d93d36a5..466d4e14 100644
--- a/Makefile
+++ b/Makefile
@@ -7,10 +7,12 @@ TESTS = $(wildcard sql/*.sql)
REGRESS = btree cast copy functions ivfflat_cosine ivfflat_ip ivfflat_l2 ivfflat_unlogged vector
+OPTFLAGS = -march=native
+
# For auto-vectorization:
# - GCC (needs -ftree-vectorize OR -O3) - https://gcc.gnu.org/projects/tree-ssa/vectorization.html
# - Clang (could use pragma instead) - https://llvm.org/docs/Vectorizers.html
-PG_CFLAGS = -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math
+PG_CFLAGS = $(OPTFLAGS) -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math
# Debug GCC auto-vectorization
# PG_CFLAGS += -fopt-info-vec
[parent: 3f0d2bbd2fc8]