git: 26e7d36735ea - main - devel/git-cliff: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 03 May 2024 01:23:14 UTC
The branch main has been updated by yuri:

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

commit 26e7d36735eaeb95f4e1c2a6c7287eca112290f8
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-03 01:22:45 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-03 01:22:45 +0000

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

diff --git a/devel/git-cliff/Makefile b/devel/git-cliff/Makefile
index a85d14df37e0..e6b4e79fea52 100644
--- a/devel/git-cliff/Makefile
+++ b/devel/git-cliff/Makefile
@@ -22,6 +22,8 @@ GH_ACCOUNT=	orhun
 WRKSRC_SUBDIR=	git-cliff
 CARGO_CARGOLOCK=	${WRKSRC}/../Cargo.lock
 
+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.21.0 \
 		adler-1.0.2 \
 		adler32-1.2.0 \