git: 85a16842b1c5 - main - Mk/Uses/cargo.mk: set correct target CPU on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 19 Apr 2022 12:09:30 UTC
The branch main has been updated by pkubaj:

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

commit 85a16842b1c5958428b6c39582630545ee481906
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-18 21:32:13 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-19 12:09:16 +0000

    Mk/Uses/cargo.mk: set correct target CPU on powerpc
---
 Mk/Uses/cargo.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mk/Uses/cargo.mk b/Mk/Uses/cargo.mk
index 7f3e669169bc..f73ab923cff8 100644
--- a/Mk/Uses/cargo.mk
+++ b/Mk/Uses/cargo.mk
@@ -140,7 +140,7 @@ CARGO_ENV+=	RUST_BACKTRACE=1
 # 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=/}
-.elif ${ARCH:Mpowerpc64*}
+.elif ${ARCH:Mpowerpc*}
 RUSTFLAGS+=	${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/:S/power/pwr/}
 .else
 RUSTFLAGS+=	${CFLAGS:M-mcpu=*:S/-mcpu=/-C target-cpu=/}