git: 1930f3ccb1ee - main - devel/cargo-deny: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 26 May 2024 01:34:34 UTC
The branch main has been updated by yuri:

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

commit 1930f3ccb1ee2d2774c2ffe687276d53d86bb478
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-26 01:34:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-26 01:34:09 +0000

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

diff --git a/devel/cargo-deny/Makefile b/devel/cargo-deny/Makefile
index 0aef3d29289a..fe29c9f383cc 100644
--- a/devel/cargo-deny/Makefile
+++ b/devel/cargo-deny/Makefile
@@ -18,6 +18,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	EmbarkStudios
 
+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 \
 		ahash-0.8.11 \