From e1a4c19668bdeced3f6409f9ca8658a040d64bc1 Mon Sep 17 00:00:00 2001 From: Daniil Belov <70999565+BelovDV@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:36:48 +0300 Subject: [PATCH] pass jobserver on target info acquiring --- src/cargo/core/compiler/build_context/target_info.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cargo/core/compiler/build_context/target_info.rs b/src/cargo/core/compiler/build_context/target_info.rs index e6e41c5226fb..51aab2f4a2b1 100644 --- a/src/cargo/core/compiler/build_context/target_info.rs +++ b/src/cargo/core/compiler/build_context/target_info.rs @@ -185,6 +185,10 @@ impl TargetInfo { .args(&rustflags) .env_remove("RUSTC_LOG"); + if let Some(client) = config.jobserver_from_env() { + process.inherit_jobserver(client); + } + if let CompileKind::Target(target) = kind { process.arg("--target").arg(target.rustc_target()); }