Re: git: 5c53f4de1a91 - main - Mk/bsd.gecko.mk: switch LLVM to 17

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 09 Apr 2024 00:50:25 UTC
Christoph Moench-Tegeder <cmt@FreeBSD.org> writes:

> The branch main has been updated by cmt:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=5c53f4de1a915eccf9f05932c48bf459a4e936d6
>
> commit 5c53f4de1a915eccf9f05932c48bf459a4e936d6
> Author:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
> AuthorDate: 2024-04-08 21:13:59 +0000
> Commit:     Christoph Moench-Tegeder <cmt@FreeBSD.org>
> CommitDate: 2024-04-08 21:13:59 +0000
>
>     Mk/bsd.gecko.mk: switch LLVM to 17
>     
>     This brings gecko ports in line with rust's embedded llvm for those
>     who want to try LTO. It also seems to improve overall behaviour
>     of gecko ports, based on single-installation experience.
[...
> -USES+=		compiler:c++17-lang cpe gl gmake gnome iconv llvm:noexport localbase \
> +USES+=		compiler:c++17-lang cpe gl gmake gnome iconv llvm:17,noexport localbase \

Rust 1.78 (ETA 2024-05-02) will bundle LLVM 18[1]. If you don't plan to
chase lang/rust (for LTO sake on /latest set) maybe unlock maximum
version via "min" i.e., USES=llvm:min=17,noexport

Originally, Firefox ports used more recent LLVM than global default but
only locked version when LTO was enabled. Since then Firefox gained
wasi-* dependencies, complicating LLVM bumps, and lang/rust added
PORT_LLVM, which can avoid mismatch with LTO.

[1] https://github.com/rust-lang/rust/pull/120055