git: c69f68f5ea69 - 2024Q4 - lang/numbat: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 10 Nov 2024 06:07:40 UTC
The branch 2024Q4 has been updated by yuri:

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

commit c69f68f5ea699ecf6b65a815fd4100bf2529fe8e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-10 06:07:07 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-10 06:07:07 +0000

    lang/numbat: Fix build on i386
    
    Reported by:    fallout
---
 lang/numbat/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lang/numbat/Makefile b/lang/numbat/Makefile
index 9c2c3e854240..25ee005bbc78 100644
--- a/lang/numbat/Makefile
+++ b/lang/numbat/Makefile
@@ -18,6 +18,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	sharkdp
 
+RUSTFLAGS=	${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386
+
 CARGO_CRATES=	aho-corasick-1.1.3 \
 		anes-0.1.6 \
 		anstream-0.6.14 \