pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust rust: Update supported platforms



details:   https://anonhg.NetBSD.org/pkgsrc/rev/127d271478a9
branches:  trunk
changeset: 450913:127d271478a9
user:      nia <nia%pkgsrc.org@localhost>
date:      Fri Apr 23 08:52:12 2021 +0000

description:
rust: Update supported platforms

diffstat:

 lang/rust/platform.mk |  32 +++++++++++++++++++++++---------
 1 files changed, 23 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r e5a9524eb31c -r 127d271478a9 lang/rust/platform.mk
--- a/lang/rust/platform.mk     Fri Apr 23 08:50:40 2021 +0000
+++ b/lang/rust/platform.mk     Fri Apr 23 08:52:12 2021 +0000
@@ -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