Date: Tue, 29 Mar 2022 18:35:00 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: f2d29fa623a2 - main - Mk/Uses/cargo.mk: disable RUST_BACKTRACE on powerpc following cargo segfaults on 13.1 Message-ID: <202203291835.22TIZ0F0088539@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=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=/}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203291835.22TIZ0F0088539>