git: 4669670ee182 - main - net/quiche: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 31 Oct 2024 00:09:36 UTC
The branch main has been updated by yuri:

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

commit 4669670ee182042a24c53e43a3207f2bd119601c
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-30 21:39:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-31 00:09:31 +0000

    net/quiche: Fix build on i386
    
    Reported by:    fallout
    Approved by:    portmgr@ (blanket; unbreak)
---
 net/quiche/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/quiche/Makefile b/net/quiche/Makefile
index de76e373ab66..ef33f44bc87d 100644
--- a/net/quiche/Makefile
+++ b/net/quiche/Makefile
@@ -16,6 +16,8 @@ GH_ACCOUNT=	cloudflare
 GH_TUPLE=	google:boringssl:f1c75347d:boringssl/quiche/deps/boringssl
 USE_LDCONFIG=	yes
 
+RUSTFLAGS=	${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386
+
 CARGO_FEATURES=		ffi pkg-config-meta
 CARGO_BUILD=		yes
 CARGO_BUILD_ARGS+=	--workspace