git: 635a8462183a - main - devel/git-repo-manager: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 30 Oct 2024 19:42:49 UTC
The branch main has been updated by yuri:

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

commit 635a8462183a76253346cc56cb48701e90ca808f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-30 19:42:04 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-30 19:42:04 +0000

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

diff --git a/devel/git-repo-manager/Makefile b/devel/git-repo-manager/Makefile
index 2c88d697686e..91ba1a508aab 100644
--- a/devel/git-repo-manager/Makefile
+++ b/devel/git-repo-manager/Makefile
@@ -20,6 +20,8 @@ USES=		cargo localbase
 USE_GITHUB=	yes
 GH_ACCOUNT=	hakoerber
 
+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=	adler2-2.0.0 \
 		aho-corasick-1.1.3 \
 		anstream-0.6.15 \