diff options
author | he <he@pkgsrc.org> | 2022-10-24 08:08:44 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2022-10-24 08:08:44 +0000 |
commit | bbfd8745fbdc428427a05ed7e08f77492857b672 (patch) | |
tree | b102cc8d9ca7b4cc16feddbbc0ccc73a10231c0a /lang/rust | |
parent | 7840b022662f4cc2a2a8e8575a6e7817cf426f2d (diff) | |
download | pkgsrc-bbfd8745fbdc428427a05ed7e08f77492857b672.tar.gz |
lang/rust: adjust for armv6 (as for armv7), as done in wip pkg.
Diffstat (limited to 'lang/rust')
-rw-r--r-- | lang/rust/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 17d5c988bd6..ed4eae90d9c 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -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 @@ BUILD_TARGET?= build .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 @@ CONFIGURE_ARGS+= --debuginfo-level-tests=0 .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 |