git: 403c480d48bb - main - devel/nextest: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 08 May 2024 17:07:14 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=403c480d48bb07936dc8671e7297e3d0027473ee

commit 403c480d48bb07936dc8671e7297e3d0027473ee
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-08 15:03:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-08 17:07:09 +0000

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

diff --git a/devel/nextest/Makefile b/devel/nextest/Makefile
index a5ab57e9a797..a58388f808d9 100644
--- a/devel/nextest/Makefile
+++ b/devel/nextest/Makefile
@@ -19,6 +19,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	nextest-rs
 
+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 \