pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust197: add an explicit test for "new enough LLVM" to options.mk.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%NetBSD.org@localhost>
Pushed By: he
Date: Sun Jul 26 09:53:22 2026 +0000
Changeset: 4bcc402b99845ac604cc48b49ccd05a01a99503a
Modified Files:
rust197/options.mk
Log Message:
rust197: add an explicit test for "new enough LLVM" to options.mk.
This is so that an attempt at building with an older already-installed
llvm will fail much earlier than long into the rustc build. Leave a
comment where to look for the LLVM requirement in the code.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=4bcc402b99845ac604cc48b49ccd05a01a99503a
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust197/options.mk | 6 ++++++
1 file changed, 6 insertions(+)
diffs:
diff --git a/rust197/options.mk b/rust197/options.mk
index ffdaf7b19a..b3e38878cf 100644
--- a/rust197/options.mk
+++ b/rust197/options.mk
@@ -66,6 +66,12 @@ GCC_REQD+= 14
#
.if empty(PKG_OPTIONS:Mrust-internal-llvm)
.include "../../lang/libunwind/buildlink3.mk"
+
+# Ref. src/bootstrap/src/core/build_steps/llvm.rs / check_llvm_version()
+# rust now (1.97.0) requires LLVM >= 21.x
+BUILDLINK_API_DEPENDS.llvm+= llvm>=21.1.0
+BUILDLINK_ABI_DEPENDS.llvm+= llvm>=21.1.0
+
.include "../../lang/llvm/buildlink3.mk"
CONFIGURE_ARGS+= --enable-llvm-link-shared
CONFIGURE_ARGS+= --llvm-libunwind=system
Home |
Main Index |
Thread Index |
Old Index