Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust On second thought, put back the settings for...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d34497384ec
branches:  trunk
changeset: 435359:5d34497384ec
user:      he <he%pkgsrc.org@localhost>
date:      Mon Jul 06 16:12:14 2020 +0000

description:
On second thought, put back the settings for powerpc and earmv7hf,
as they are needed when building natively on those platforms.

diffstat:

 lang/rust/Makefile |  25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r 43e1b57942da -r 5d34497384ec lang/rust/Makefile
--- a/lang/rust/Makefile        Mon Jul 06 16:03:00 2020 +0000
+++ b/lang/rust/Makefile        Mon Jul 06 16:12:14 2020 +0000
@@ -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 @@
 
 .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.
 



Home | Main Index | Thread Index | Old Index