summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-04-23 08:52:12 +0000
committernia <nia@pkgsrc.org>2021-04-23 08:52:12 +0000
commit4e3876f996ae4699039c48f15dabb2c704716228 (patch)
tree1a590ce9ebdbce4f04e837666f88acf28550aa2b /lang/rust
parent015b733f6d17f55fe59648499c1d9fc85bf4f4d6 (diff)
downloadpkgsrc-4e3876f996ae4699039c48f15dabb2c704716228.tar.gz
rust: Update supported platforms
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/platform.mk32
1 files changed, 23 insertions, 9 deletions
diff --git a/lang/rust/platform.mk b/lang/rust/platform.mk
index f6fa207ed4e..d208cd3180b 100644
--- a/lang/rust/platform.mk
+++ b/lang/rust/platform.mk
@@ -1,4 +1,4 @@
-# $NetBSD: platform.mk,v 1.8 2021/04/19 17:08:09 he Exp $
+# $NetBSD: platform.mk,v 1.9 2021/04/23 08:52:12 nia Exp $
# This file encodes whether a given platform has support for rust.
@@ -7,20 +7,34 @@
.if !defined(PLATFORM_SUPPORTS_RUST)
-# Rust needs NetBSD>7
-. for rust_arch in aarch64 earmv7hf i386 powerpc sparc64 x86_64
-. for rust_os in Darwin FreeBSD Linux NetBSD SunOS
-. if ${OPSYS} != "NetBSD" || empty(OS_VERSION:M[0-7].*)
-RUST_PLATFORMS+= ${rust_os}-*-${rust_arch}
-. endif
-. endfor
-. endfor
+.include "../../mk/bsd.fast.prefs.mk"
+
+# Bootstraps built for NetBSD 8.0
+.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-7].*)
+RUST_PLATFORMS+= NetBSD-*-i386
+RUST_PLATFORMS+= NetBSD-*-x86_64
+RUST_PLATFORMS+= NetBSD-*-powerpc
+RUST_PLATFORMS+= NetBSD-*-sparc64
+.endif
+
+# Bootstraps built for NetBSD 9.0
+.if ${OPSYS} == "NetBSD" && empty(OS_VERSION:M[0-8].*)
+RUST_PLATFORMS+= NetBSD-*-earmv7hf
+RUST_PLATFORMS+= NetBSD-*-aarch64
+.endif
+
+RUST_PLATFORMS+= FreeBSD-*-x86_64
+RUST_PLATFORMS+= Darwin-*-x86_64
+RUST_PLATFORMS+= Linux-*-i386
+RUST_PLATFORMS+= Linux-*-x86_64
+RUST_PLATFORMS+= SunOS-*-x86_64
. for rust_platform in ${RUST_PLATFORMS}
. if !empty(MACHINE_PLATFORM:M${rust_platform})
PLATFORM_SUPPORTS_RUST= yes
. endif
. endfor
+
PLATFORM_SUPPORTS_RUST?= no
.endif # !defined(PLATFORM_SUPPORTS_RUST)