git: e5213b9887e6 - main - devel/py-qcs-sdk-python: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sat, 18 May 2024 18:35:21 UTC
The branch main has been updated by yuri:

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

commit e5213b9887e691fd04697e684ff4191be0bfa4c9
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-05-18 18:34:59 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-05-18 18:34:59 +0000

    devel/py-qcs-sdk-python: Fix build on i386
    
    Reported by:    fallout
---
 devel/py-qcs-sdk-python/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/py-qcs-sdk-python/Makefile b/devel/py-qcs-sdk-python/Makefile
index ffe66864555a..8facb0828201 100644
--- a/devel/py-qcs-sdk-python/Makefile
+++ b/devel/py-qcs-sdk-python/Makefile
@@ -24,6 +24,8 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	rigetti
 GH_PROJECT=	qcs-sdk-rust
 
+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 \
 		aho-corasick-1.1.3 \