Thread (105 messages) 105 messages, 14 authors, 20d ago

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

From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
Date: 2026-09-09 14:22:32
Also in: linux-arch, linux-doc, linux-efi, linux-kbuild, linux-riscv, lkml, llvm

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) [off-list ref] wrote:
quoted
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.
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help