Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jul 2024 08:58:08 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 268b08a12c94 - main - www/wasm-pack: Fix build on i386
Message-ID:  <202407120858.46C8w8NR036129@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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 \


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407120858.46C8w8NR036129>