Re: [PATCH 20/23] kbuild: rust: parallelise rustc front end
From: Lorenzo Stoakes (ARM)
Date: Wed Sep 09 2026 - 12:42:41 EST
On Tue, Sep 08, 2026 at 11:13:04PM +0200, Miguel Ojeda wrote:
> On Tue, Sep 8, 2026 at 10:59 PM Lorenzo Stoakes (ARM) <ljs@xxxxxxxxxx> wrote:
> >
> > A future -j/--jobs option is planned for
> > rustc:(rust-lang/compiler-team#1005), so check to see if this available and
> > if so use it.
>
> This is already implemented in nightly as far as I can tell. If it
> weren't, we shouldn't add it, even if planned.
>
> (By the way, could you please add Link tags for those URLs?)
Ack, will do.
>
> > +config RUSTC_HAS_JOBS
> > + def_bool $(rustc-option,-j8)
> > +
> > +config RUSTC_HAS_ZTHREADS
> > + def_bool $(rustc-option,-Zthreads=8)
>
> We can simplify using `RUSTC_VERSION` for these like we do elsewhere.
Ack also!
>
> Cheers,
> Miguel
--
Cheers, Lorenzo