pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust199: on NetBSD/powerpc, only build LLVM for PowerPC and X86.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Tue Oct 13 08:40:57 2026 +0200
Changeset: e1599d0288bc4ac1acb047a455d2f0b5d35bf893
Modified Files:
rust199/Makefile
Log Message:
rust199: on NetBSD/powerpc, only build LLVM for PowerPC and X86.
This avoids the build of particularly the RISCV LLVM CPU target
which causes g++ to want to exceed the available virtual space
when building natively on PowerPC.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e1599d0288bc4ac1acb047a455d2f0b5d35bf893
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust199/Makefile | 5 +++++
1 file changed, 5 insertions(+)
diffs:
diff --git a/rust199/Makefile b/rust199/Makefile
index eec969f525..5ef8ceac97 100644
--- a/rust199/Makefile
+++ b/rust199/Makefile
@@ -183,6 +183,11 @@ CONFIGURE_ARGS+= --set llvm.targets="Mips"
.if !empty(TARGET:Mmipsel-unknown-netbsd)
CONFIGURE_ARGS+= --set llvm.targets="Mips;X86"
.endif
+# NetBSD/powerpc can no longer build all targets, ref.
+# https://github.com/llvm/llvm-project/issues/230790
+.if ${MACHINE_PLATFORM:MNetBSD-*-powerpc}
+CONFIGURE_ARGS+= --set llvm.targets="PowerPC;X86"
+.endif
RUSTLIB_COMPILER= lib/rustlib/rustc-src/rust/compiler
RUSTC_CG_CRANELIFT= ${RUSTLIB_COMPILER}/rustc_codegen_cranelift
Home |
Main Index |
Thread Index |
Old Index