Skip to content

Commit

Permalink
lang/rust: enable RUST_BACKTRACE on powerpc since it seems it works now
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubaj committed Apr 27, 2024
1 parent 0331296 commit 54f7b9d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lang/rust/Makefile
@@ -1,6 +1,6 @@
PORTNAME= rust
PORTVERSION?= 1.77.0
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= https://static.rust-lang.org/dist/:src \
https://dev-static.rust-lang.org/dist/:src \
Expand Down Expand Up @@ -34,6 +34,7 @@ CPE_VENDOR= rust-lang

MAKE_ENV= DESTDIR=${STAGEDIR} \
LIBGIT2_NO_PKG_CONFIG=1 \
RUST_BACKTRACE=1 \
OPENSSL_DIR="${OPENSSLBASE}"
TEST_ENV= ${MAKE_ENV} \
ALLOW_NONZERO_RLIMIT_CORE=1
Expand Down Expand Up @@ -101,13 +102,9 @@ IGNORE= is only for FreeBSD
.if ${ARCH} == powerpc
LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
MAKE_ENV+= RUSTFLAGS="-L/usr/local/lib/gcc${GCC_DEFAULT}"
.else
MAKE_ENV+= RUST_BACKTRACE=1
.endif

# rls doesn't build on rust nightly
# rls needs 64-bit atomics: it doesn't build on powerpc
.if !defined(NIGHTLY_DATE) && ${ARCH} != powerpc
.elif !defined(NIGHTLY_DATE)
_RUST_TOOLS+= rls
_COMPONENTS+= rls-${_PACKAGE_VERS}-${_RUST_TARGET}
.endif
Expand Down

0 comments on commit 54f7b9d

Please sign in to comment.