Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2024 18:34:45 +0100
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Gleb Popov <arrowd@freebsd.org>
Cc:        Alan Somers <asomers@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>, Warner Losh <imp@bsdimp.com>, Scott Long <scottl@freebsd.org>, meka@tilda.center
Subject:   Re: The Case for Rust (in the base system)
Message-ID:  <01519AEB-2725-492F-BC17-A7A40166D437@FreeBSD.org>
In-Reply-To: <CALH631=v4aWhFNDjZcnmjPnzFyZGhg%2BPuRmShx8TFvF6hPbnJQ@mail.gmail.com>
References:  <CAOtMX2hAUiWdGPtpaCJLPZB%2Bj2yzNw5DSjUmkwTi%2B%2BmyemehCA@mail.gmail.com> <CALH631=v4aWhFNDjZcnmjPnzFyZGhg%2BPuRmShx8TFvF6hPbnJQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20 Jan 2024, at 18:13, Gleb Popov <arrowd@freebsd.org> wrote:
>=20
> On Sat, Jan 20, 2024 at 7:51=E2=80=AFPM Alan Somers =
<asomers@freebsd.org> wrote:
>> To
>> summarize, the cost is that it would double our build times.
>=20
> Would it? =46rom what I remember, a lot of rust's build time comes =
from
> building its own LLVM. Can we reuse our base LLVM for Rust-in-base?

It used to be the case that the Rust port could not use an LLVM port,
but had to use its own copy, but it seems that as of
https://cgit.freebsd.org/ports/commit/?id=3D098de5bc2195 it is possible
again.

However, I think this discussion is going in the wrong direction: why
keep attempting to build all these huge toolchain components in our base
system at all? Our bmake is reasonably powerful, but upstream build
systems for both LLVM and Rust require lots of dependencies that we can
never all import. And mimicking those upstream builds in our base system
is getting more and more complicated all the time.

Therefore, I think it is better to put more effort in supporting
external toolchain components, and even going so far as to remove some
of those toolchains from base. Including LLVM, at some point. Let new
toolchain components for base live in ports, please.

-Dimitry




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01519AEB-2725-492F-BC17-A7A40166D437>