diff options
author | he <he@pkgsrc.org> | 2020-10-28 11:41:26 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2020-10-28 11:41:26 +0000 |
commit | 65c7c30c43909a8fff982bf0c8d2c9cf9381b9d7 (patch) | |
tree | b8f9fbe8a62370316ee0c14bbd897a2a9c6659be /lang/rust | |
parent | e15e6680b62ebe1d972d7549c73c1c51892c2200 (diff) | |
download | pkgsrc-65c7c30c43909a8fff982bf0c8d2c9cf9381b9d7.tar.gz |
Further space-optimize when building natively on earmv7hf; only
build llvm with the ARM CPU target, but when cross-building on X86,
X86 needs to also be built, due to 2-stage build process.
Diffstat (limited to 'lang/rust')
-rw-r--r-- | lang/rust/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile index fadd96e0b9f..454eef5e1bc 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.198 2020/10/28 11:16:46 he Exp $ +# $NetBSD: Makefile,v 1.199 2020/10/28 11:41:26 he Exp $ DISTNAME= rustc-1.46.0-src PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} @@ -76,9 +76,11 @@ CHECK_SSP_SUPPORTED= no .include "../../mk/bsd.prefs.mk" .if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) || \ - !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) + !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) || \ + !empty(TARGET:Marmv7-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. CONFIGURE_ARGS+= --disable-debug CONFIGURE_ARGS+= --disable-debug-assertions CONFIGURE_ARGS+= --disable-llvm-release-debuginfo @@ -90,9 +92,12 @@ CONFIGURE_ARGS+= --debuginfo-level-tests=0 .endif # Only build the ARM target on/for this host, due to resource constraints -# (X86 needs to go along due to 2-stage build process) -.if !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) || \ - !empty(TARGET:Marmv7-unknown-netbsd-eabihf) +.if !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) +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) CONFIGURE_ARGS+= --set llvm.targets="ARM;X86" .endif |