From 8558fda7213461506b69ed871d8294710719b712 Mon Sep 17 00:00:00 2001
From: Martin Larralde <martin.larralde@embl.de>
Date: Sat, 23 Jul 2022 17:30:46 +0200
Subject: [PATCH] Fix Arm NEON compile flags in `setup.py`

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 05b0b84..78aec70 100644
--- a/setup.py
+++ b/setup.py
@@ -502,7 +502,7 @@ libraries = [
             PlatformCode(
                 platform="NEON",
                 sources=[os.path.join("pyfastani", "_sequtils", "neon.c")],
-                extra_compile_args=["-mneon"],
+                extra_compile_args=[] if PROCESSOR_IS_AARCH64 else ["-mfpu=neon"],
             ),
             PlatformCode(
                 platform="SSE2",
-- 
GitLab