git: 38b305e80f68 - main - sysutils/conserve: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 02 Nov 2024 21:42:42 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=38b305e80f68339bb11a3dfb10792e4c4716d446

commit 38b305e80f68339bb11a3dfb10792e4c4716d446
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-11-02 21:41:43 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-11-02 21:41:43 +0000

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

diff --git a/sysutils/conserve/Makefile b/sysutils/conserve/Makefile
index 4311ac957b66..b8120b70f8ae 100644
--- a/sysutils/conserve/Makefile
+++ b/sysutils/conserve/Makefile
@@ -16,6 +16,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	sourcefrog
 
+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 \