git: 6350ef8e05fd - 2024Q4 - devel/cargo-edit: Fix build on i386

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

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

commit 6350ef8e05fd64e8fe04ad18ab700032363ca2aa
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-10 06:08:25 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-10 06:08:25 +0000

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

diff --git a/devel/cargo-edit/Makefile b/devel/cargo-edit/Makefile
index be7f12348d63..03d6e6028869 100644
--- a/devel/cargo-edit/Makefile
+++ b/devel/cargo-edit/Makefile
@@ -17,6 +17,8 @@ USES=		cargo localbase:ldflags ssl
 USE_GITHUB=	yes
 GH_ACCOUNT=	killercup
 
+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=	addr2line-0.24.1 \
 		adler2-2.0.0 \
 		aho-corasick-1.1.3 \