git: 500de062cae7 - main - misc/bedrust: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 10 May 2024 06:48:07 UTC
The branch main has been updated by yuri:

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

commit 500de062cae715904e9abeda624b30a002a6f47d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-10 06:20:52 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-10 06:47:54 +0000

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

diff --git a/misc/bedrust/Makefile b/misc/bedrust/Makefile
index e9deab19dcf7..779113592273 100644
--- a/misc/bedrust/Makefile
+++ b/misc/bedrust/Makefile
@@ -15,6 +15,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	darko-mesaros
 
+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 \
 		aligned-vec-0.5.0 \