git: 86fda2795011 - main - devel/py-simsimd: fix build on arm64

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 19 Sep 2026 22:43:11 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=86fda279501145fbce684d840d5b9d3cf276f49c

commit 86fda279501145fbce684d840d5b9d3cf276f49c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-19 22:29:18 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-19 22:42:25 +0000

    devel/py-simsimd: fix build on arm64
    
    Reported by:    fallout
---
 devel/py-simsimd/files/patch-include_simsimd_types.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/devel/py-simsimd/files/patch-include_simsimd_types.h b/devel/py-simsimd/files/patch-include_simsimd_types.h
index 063392eb0f73..f0879d9a7be7 100644
--- a/devel/py-simsimd/files/patch-include_simsimd_types.h
+++ b/devel/py-simsimd/files/patch-include_simsimd_types.h
@@ -1,12 +1,16 @@
 -- fix bug that __bfloat16 isn't defined
+-- guard the immintrin.h include to x86/i386 only, since it is an x86-specific
+-- header and unconditionally including it breaks the build on arm64
 
---- include/simsimd/types.h.orig	2026-08-02 22:31:43 UTC
+--- include/simsimd/types.h.orig	2026-03-07 14:05:46 UTC
 +++ include/simsimd/types.h
-@@ -326,6 +326,8 @@ typedef unsigned short simsimd_f16_t;
+@@ -326,6 +326,10 @@ typedef unsigned short simsimd_f16_t;
  typedef unsigned short simsimd_f16_t;
  #endif
  
++#if defined(__x86_64__) || defined(__i386__)
 +#include <immintrin.h>
++#endif
 +
  #if !defined(SIMSIMD_NATIVE_BF16) || SIMSIMD_NATIVE_BF16
  /**