git: f2d29fa623a2 - main - Mk/Uses/cargo.mk: disable RUST_BACKTRACE on powerpc following cargo segfaults on 13.1

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 29 Mar 2022 18:35:00 UTC
The branch main has been updated by pkubaj:

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

commit f2d29fa623a2f00a43d716257010aa25b1acac2d
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-03-29 18:24:27 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-03-29 18:24:27 +0000

    Mk/Uses/cargo.mk: disable RUST_BACKTRACE on powerpc following cargo segfaults on 13.1
---
 Mk/Uses/cargo.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index ef9c3d821567..7f3e669169bc 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -129,11 +129,14 @@ CARGO_ENV+= \
 	CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET} \
 	CARGO_TARGET_DIR=${CARGO_TARGET_DIR} \
 	CARGO_TARGET_${CARGO_BUILD_TARGET:S/-/_/g:tu}_LINKER="${CC}" \
-	RUST_BACKTRACE=1 \
 	RUSTC=${RUSTC} \
 	RUSTDOC=${RUSTDOC} \
 	RUSTFLAGS="${RUSTFLAGS} ${LDFLAGS:C/.+/-C link-arg=&/}"
 
+.if ${ARCH} != powerpc
+CARGO_ENV+=	RUST_BACKTRACE=1
+.endif
+
 # Adjust -C target-cpu if -march/-mcpu is set by bsd.cpu.mk
 .if ${ARCH} == amd64 || ${ARCH} == i386
 RUSTFLAGS+=	${CFLAGS:M-march=*:S/-march=/-C target-cpu=/}