git: 2501f5298c3f - main - lang/rust: limit PORT_LLVM max to 18

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Fri, 18 Oct 2024 03:20:51 UTC
The branch main has been updated by vishwin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2501f5298c3f36fbdfbd4ddda7620cb27a0e0af3

commit 2501f5298c3f36fbdfbd4ddda7620cb27a0e0af3
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2024-10-18 03:18:44 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2024-10-18 03:18:44 +0000

    lang/rust: limit PORT_LLVM max to 18
    
    LLVM 19 support only starts in Rust 1.82; this restriction will be
    removed once the update is committed.
---
 lang/rust/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index 295e4b1941c0..5da879672316 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -59,7 +59,7 @@ DOCS_VARS=		_RUST_BUILD_DOCS=true \
 			_RUST_TOOLS+=rustdoc
 DOCS_VARS_OFF=		_RUST_BUILD_DOCS=false
 GDB_RUN_DEPENDS=	${LOCALBASE}/bin/gdb:devel/gdb
-PORT_LLVM_USES=		llvm:min=17,lib,noexport
+PORT_LLVM_USES=		llvm:min=17,max=18,lib,noexport
 PORT_LLVM_MAKE_ENV=	RUSTFLAGS="-Lnative=${LOCALBASE}/lib"
 SOURCES_VARS=		_COMPONENTS+=rust-src-${_PACKAGE_VERS} \
 			_RUST_TOOLS+=src