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

Miguel Ojeda miguel.ojeda.sandonis at gmail.com
Tue Sep 8 14:13:04 PDT 2026


On Tue, Sep 8, 2026 at 10:59 PM Lorenzo Stoakes (ARM) <ljs at kernel.org> 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



More information about the linux-riscv mailing list