git: 59d1b4b046ed - main - www/xh: Fix build on i386

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

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

commit 59d1b4b046ed58005db95bff123d0bd457f78a6e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-30 23:19:08 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-31 00:09:31 +0000

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

diff --git a/www/xh/Makefile b/www/xh/Makefile
index 03e30081adb6..39e7990bdcc6 100644
--- a/www/xh/Makefile
+++ b/www/xh/Makefile
@@ -17,6 +17,8 @@ USES=		cargo ssl
 USE_GITHUB=	yes
 GH_ACCOUNT=	ducaale
 
+RUSTFLAGS=	${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/-C target-feature=+sse,+sse2/} # add sse sse2 target-features only on i386
+
 PLIST_FILES=	bin/${PORTNAME}
 PORTDOCS=	CHANGELOG.md README.md