pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust lang/rust: adjust for armv6 (as for armv7), ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ce5b233092f1
branches:  trunk
changeset: 387159:ce5b233092f1
user:      he <he%pkgsrc.org@localhost>
date:      Mon Oct 24 08:08:44 2022 +0000

description:
lang/rust: adjust for armv6 (as for armv7), as done in wip pkg.

diffstat:

 lang/rust/Makefile |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (39 lines):

diff -r af2a57776d39 -r ce5b233092f1 lang/rust/Makefile
--- a/lang/rust/Makefile        Mon Oct 24 07:53:12 2022 +0000
+++ b/lang/rust/Makefile        Mon Oct 24 08:08:44 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.268 2022/10/23 14:48:31 he Exp $
+# $NetBSD: Makefile,v 1.269 2022/10/24 08:08:44 he Exp $
 
 DISTNAME=      rustc-1.63.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -102,11 +102,11 @@
 .endif
 
 .if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) || \
-    !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) || \
-    !empty(TARGET:Marmv7-unknown-netbsd-eabihf)
+    !empty(MACHINE_PLATFORM:MNetBSD-*-earmv[67]hf) || \
+    !empty(TARGET:Marmv[67]-unknown-netbsd-eabihf)
 # Bootstrapping on NetBSD/powerpc requires no debug-info from rustc
 # (both for amd64->powerpc built and powerpc->powerpc built bootstrap bits)
-# Also try to downsize the armv7 build.
+# Also try to downsize the armv[67] build.
 CONFIGURE_ARGS+=       --disable-debug
 CONFIGURE_ARGS+=       --disable-debug-assertions
 CONFIGURE_ARGS+=       --disable-llvm-release-debuginfo
@@ -118,12 +118,12 @@
 .endif
 
 # Only build the ARM target on/for this host, due to resource constraints
-.if !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf)
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-earmv[67]hf)
 CONFIGURE_ARGS+=       --set llvm.targets="ARM"
 .endif
 # When cross-building for ARM on X86, X86 needs to go along due
 # to 2-stage build process
-.if !empty(TARGET:Marmv7-unknown-netbsd-eabihf)
+.if !empty(TARGET:Marmv[67]-unknown-netbsd-eabihf)
 CONFIGURE_ARGS+=       --set llvm.targets="ARM;X86"
 .endif
 



Home | Main Index | Thread Index | Old Index