pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust: use the internal LLVM on NetBSD/sparc64.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Mon Apr 18 14:50:52 2022 +0000
Changeset: cd5b683e11c5a90e8520d450db09b840b9691282
Modified Files:
rust/options.mk
Log Message:
rust: use the internal LLVM on NetBSD/sparc64.
(NetBSD)/sparc64 systems fail to build libunwind from LLVM 13.0.1,
which is depended on here if we're using the pkgsrc LLVM and
libunwind, so default to using rust-llvm on NetBSD/sparc64.
Ref. PR#56791.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=cd5b683e11c5a90e8520d450db09b840b9691282
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust/options.mk | 7 +++++++
1 file changed, 7 insertions(+)
diffs:
diff --git a/rust/options.mk b/rust/options.mk
index cb1633b635..8ae016d9e3 100644
--- a/rust/options.mk
+++ b/rust/options.mk
@@ -20,6 +20,13 @@ PKG_SUGGESTED_OPTIONS+= rust-llvm
PKG_SUGGESTED_OPTIONS+= rust-cargo-static
.endif
+# (NetBSD)/sparc64 systems fail to build libunwind,
+# a dependency of pkgsrc llvm, so use the internal instead
+# Ref. PR#56791
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
+PKG_SUGGESTED_OPTIONS+= rust-llvm
+.endif
+
.include "../../mk/bsd.options.mk"
#
Home |
Main Index |
Thread Index |
Old Index