summaryrefslogtreecommitdiff
path: root/lang/rust/Makefile
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2024-07-02 08:41:41 +0200
committerPiotr Kubaj <pkubaj@FreeBSD.org>2024-07-02 08:44:28 +0200
commit923194c2b0279518785b1b6683a6ed584d560eff (patch)
treebd5046df037e0b277f002b2f5933a4cffd4c1c3a /lang/rust/Makefile
parentfinance/gnucash-docs: Update to 5.7 (diff)
lang/rust: enable rls on powerpc
Builds fine on 13.3-RELEASE and newer.
Diffstat (limited to '')
-rw-r--r--lang/rust/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index 6c4c26477814..839cfb6c804e 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -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