diff options
author | he <he@pkgsrc.org> | 2020-07-06 16:12:14 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2020-07-06 16:12:14 +0000 |
commit | 614000d3f87a84c051505b67293e173ba39a9df6 (patch) | |
tree | 4fa847e721e59a1475f0a99c095ab0a24a7a3f38 /lang | |
parent | 1054de1bb32029d6e7c2ae8ccbf4074fab8a28bb (diff) | |
download | pkgsrc-614000d3f87a84c051505b67293e173ba39a9df6.tar.gz |
On second thought, put back the settings for powerpc and earmv7hf,
as they are needed when building natively on those platforms.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/rust/Makefile | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 2884441e2bb..b107b1073fe 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.183 2020/07/06 16:03:00 he Exp $ +# $NetBSD: Makefile,v 1.184 2020/07/06 16:12:14 he Exp $ -DISTNAME= rustc-1.44.1-src +DISTNAME= rustc-1.44.0-src PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} CATEGORIES= lang MASTER_SITES= http://static.rust-lang.org/dist/ @@ -72,6 +72,27 @@ CHECK_SSP_SUPPORTED= no .include "../../mk/bsd.prefs.mk" +.if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) || \ + !empty(MACHINE_PLATFORM:MNetBSD-*-earmv7hf) +# Bootstrapping on NetBSD/powerpc requires no debug-info from rustc +# (both for amd64->powerpc built and powerpc->powerpc built bootstrap bits) +CONFIGURE_ARGS+= --disable-debug +CONFIGURE_ARGS+= --disable-debug-assertions +CONFIGURE_ARGS+= --disable-llvm-release-debuginfo +CONFIGURE_ARGS+= --debuginfo-level=0 +CONFIGURE_ARGS+= --debuginfo-level-rustc=0 +CONFIGURE_ARGS+= --debuginfo-level-std=0 +CONFIGURE_ARGS+= --debuginfo-level-tools=0 +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) +CONFIGURE_ARGS+= --set llvm.targets="ARM;X86" +.endif + .if ${OPSYS} == "NetBSD" # This block contains information about known trouble on NetBSD and workarounds. |