pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/lang/rust
Module Name: pkgsrc
Committed By: nia
Date: Fri Apr 23 08:52:12 UTC 2021
Modified Files:
pkgsrc/lang/rust: platform.mk
Log Message:
rust: Update supported platforms
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 pkgsrc/lang/rust/platform.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/lang/rust/platform.mk
diff -u pkgsrc/lang/rust/platform.mk:1.8 pkgsrc/lang/rust/platform.mk:1.9
--- pkgsrc/lang/rust/platform.mk:1.8 Mon Apr 19 17:08:09 2021
+++ pkgsrc/lang/rust/platform.mk Fri Apr 23 08:52:12 2021
@@ -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)
Home |
Main Index |
Thread Index |
Old Index