Re: [PATCH 20/23] kbuild: rust: parallelise rustc front end

From: Miguel Ojeda

Date: Tue Sep 08 2026 - 17:19:30 EST


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?)

> +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.

Cheers,
Miguel