git: a67e716bdd79 - main - misc/quary: Fix build on i386

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

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

commit a67e716bdd79d56c081d69776c1d2c19e710a26d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-26 01:24:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-26 01:24:38 +0000

    misc/quary: Fix build on i386
---
 misc/quary/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/misc/quary/Makefile b/misc/quary/Makefile
index 65cea657bd57..926e1f6285b3 100644
--- a/misc/quary/Makefile
+++ b/misc/quary/Makefile
@@ -15,6 +15,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	quarylabs
 
+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.7.8 \