lang/rust: enable rls on powerpc

Builds fine on 13.3-RELEASE and newer.
This commit is contained in:
Piotr Kubaj 2024-07-02 08:41:41 +02:00
commit 923194c2b0

View file

@ -1,6 +1,6 @@
PORTNAME= rust
PORTVERSION?= 1.79.0
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= https://static.rust-lang.org/dist/:src \
https://dev-static.rust-lang.org/dist/:src \
@ -101,9 +101,10 @@ 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}"
.endif
# rls doesn't build on rust nightly
# rls needs 64-bit atomics: it doesn't build on powerpc
.elif !defined(NIGHTLY_DATE)
.if !defined(NIGHTLY_DATE)
_RUST_TOOLS+= rls
_COMPONENTS+= rls-${_PACKAGE_VERS}-${_RUST_TARGET}
.endif