git: 268b08a12c94 - main - www/wasm-pack: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 12 Jul 2024 08:58:08 UTC
The branch main has been updated by yuri:

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

commit 268b08a12c94d466ead704b5f2f59ab4768241a9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-07-12 08:47:18 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-07-12 08:58:01 +0000

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

diff --git a/www/wasm-pack/Makefile b/www/wasm-pack/Makefile
index 1f36e7dfd262..d8aa7d141eba 100644
--- a/www/wasm-pack/Makefile
+++ b/www/wasm-pack/Makefile
@@ -24,6 +24,8 @@ USE_PERL5=	build
 USE_GITHUB=	yes
 GH_ACCOUNT=	rustwasm
 
+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.22.0 \
 		adler-1.0.2 \
 		aes-0.8.4 \