Thread (105 messages) flat view 105 messages, 14 authors, 3d ago

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

From: Miguel Ojeda <hidden>
Date: 2026-09-08 21:13:18
Also in: linux-arch, linux-doc, linux-efi, linux-kbuild, linux-riscv, lkml, llvm

On Tue, Sep 8, 2026 at 10:59 PM Lorenzo Stoakes (ARM) [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help