From fa401b78839cebbb3a1b977f68878ff4f215d215 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 17 May 2023 16:59:22 -0700 Subject: [PATCH] Fixed compilation error on PowerPC - closes #117 Co-authored-by: Ilya --- CHANGELOG.md | 1 + Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c9eb33..5df6332 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.4.3 (unreleased) - Fixed compilation error when `float8` is pass by reference +- Fixed compilation error on PowerPC - Fixed segmentation fault with index creation on i386 ## 0.4.2 (2023-05-13) diff --git a/Makefile b/Makefile index 7292da6..6f75c56 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,11 @@ ifeq ($(shell uname -s), Darwin) endif endif +# PowerPC doesn't support -march=native +ifneq ($(filter ppc64%, $(shell uname -m)), ) + OPTFLAGS = +endif + # 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