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:           Thu Mar 21 02:14:14 UTC 2024

Modified Files:
        pkgsrc/lang/rust: platform.mk

Log Message:
rust: Make the list of supported platforms constant, requested by gdt.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 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.22 pkgsrc/lang/rust/platform.mk:1.23
--- pkgsrc/lang/rust/platform.mk:1.22   Tue Mar 19 11:18:49 2024
+++ pkgsrc/lang/rust/platform.mk        Thu Mar 21 02:14:14 2024
@@ -1,4 +1,4 @@
-# $NetBSD: platform.mk,v 1.22 2024/03/19 11:18:49 nia Exp $
+# $NetBSD: platform.mk,v 1.23 2024/03/21 02:14:14 nia Exp $
 
 # This file encodes whether a given platform has support for rust.
 
@@ -6,18 +6,19 @@
 
 .include "../../mk/bsd.fast.prefs.mk"
 
-.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} >= 090000
-RUST_PLATFORMS+=       NetBSD-*-aarch64
-RUST_PLATFORMS+=       NetBSD-*-aarch64eb
-RUST_PLATFORMS+=       NetBSD-*-earmv6hf
-RUST_PLATFORMS+=       NetBSD-*-earmv7hf
-RUST_PLATFORMS+=       NetBSD-*-i386
-RUST_PLATFORMS+=       NetBSD-*-mipsel
-RUST_PLATFORMS+=       NetBSD-*-powerpc
-RUST_PLATFORMS+=       NetBSD-*-riscv64
-RUST_PLATFORMS+=       NetBSD-*-sparc64
-RUST_PLATFORMS+=       NetBSD-*-x86_64
-.endif
+# 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



Home | Main Index | Thread Index | Old Index