pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Rust177: sync platform.mk from main
Module Name: pkgsrc-wip
Committed By: pin <voidpin%protonmail.com@localhost>
Pushed By: pin
Date: Fri Apr 19 10:59:19 2024 +0200
Changeset: d75137342d83cbe2cf8a8f75084d65a338d13569
Modified Files:
rust177/platform.mk
Log Message:
Rust177: sync platform.mk from main
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d75137342d83cbe2cf8a8f75084d65a338d13569
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust177/platform.mk | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
diffs:
diff --git a/rust177/platform.mk b/rust177/platform.mk
index cc75fd55ab..736652b14e 100644
--- a/rust177/platform.mk
+++ b/rust177/platform.mk
@@ -2,20 +2,34 @@
# This file encodes whether a given platform has support for rust.
-# Platforms where rust ought to work but does not require a link to an
-# open PR.
-
.if !defined(PLATFORM_SUPPORTS_RUST)
-# Rust needs NetBSD>7
-.for rust_arch in aarch64 earmv7hf i386 powerpc riscv64 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
+.include "../../mk/bsd.fast.prefs.mk"
+
+# Little bit of future-proofing.
+.for i in 9 10 11
+RUST_PLATFORMS+= NetBSD-${i}.*-aarch64
+RUST_PLATFORMS+= NetBSD-${i}.*-aarch64eb
+RUST_PLATFORMS+= NetBSD-${i}.*-earmv6hf
+RUST_PLATFORMS+= NetBSD-${i}.*-earmv7hf
+RUST_PLATFORMS+= NetBSD-${i}.*-i386
+RUST_PLATFORMS+= NetBSD-${i}.*-mipsel
+RUST_PLATFORMS+= NetBSD-${i}.*-powerpc
+RUST_PLATFORMS+= NetBSD-${i}.*-riscv64
+RUST_PLATFORMS+= NetBSD-${i}.*-sparc64
+RUST_PLATFORMS+= NetBSD-${i}.*-x86_64
.endfor
+RUST_PLATFORMS+= Darwin-*-aarch64
+RUST_PLATFORMS+= Darwin-*-x86_64
+RUST_PLATFORMS+= FreeBSD-*-x86_64
+RUST_PLATFORMS+= Linux-*-aarch64
+RUST_PLATFORMS+= Linux-*-earmv6hf
+RUST_PLATFORMS+= Linux-*-earmv7hf
+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
Home |
Main Index |
Thread Index |
Old Index