Date: Tue, 19 Apr 2022 12:09:30 GMT From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 85a16842b1c5 - main - Mk/Uses/cargo.mk: set correct target CPU on powerpc Message-ID: <202204191209.23JC9U4S076536@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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=/}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204191209.23JC9U4S076536>