Skip to content

Commit 54f7b9d

Browse files
committed
lang/rust: enable RUST_BACKTRACE on powerpc since it seems it works now
1 parent 0331296 commit 54f7b9d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎lang/rust/Makefile‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
PORTNAME= rust
22
PORTVERSION?= 1.77.0
3-
PORTREVISION?= 0
3+
PORTREVISION?= 1
44
CATEGORIES= lang
55
MASTER_SITES= https://static.rust-lang.org/dist/:src \
66
https://dev-static.rust-lang.org/dist/:src \
@@ -34,6 +34,7 @@ CPE_VENDOR= rust-lang
3434

3535
MAKE_ENV= DESTDIR=${STAGEDIR} \
3636
LIBGIT2_NO_PKG_CONFIG=1 \
37+
RUST_BACKTRACE=1 \
3738
OPENSSL_DIR="${OPENSSLBASE}"
3839
TEST_ENV= ${MAKE_ENV} \
3940
ALLOW_NONZERO_RLIMIT_CORE=1
@@ -101,13 +102,9 @@ IGNORE= is only for FreeBSD
101102
.if ${ARCH} == powerpc
102103
LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
103104
MAKE_ENV+= RUSTFLAGS="-L/usr/local/lib/gcc${GCC_DEFAULT}"
104-
.else
105-
MAKE_ENV+= RUST_BACKTRACE=1
106-
.endif
107-
108105
# rls doesn't build on rust nightly
109106
# rls needs 64-bit atomics: it doesn't build on powerpc
110-
.if !defined(NIGHTLY_DATE) && ${ARCH} != powerpc
107+
.elif !defined(NIGHTLY_DATE)
111108
_RUST_TOOLS+= rls
112109
_COMPONENTS+= rls-${_PACKAGE_VERS}-${_RUST_TARGET}
113110
.endif

0 commit comments

Comments
 (0)