From 8a97ce2fbc631f299f056a328c292f4267992208 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] remove jobserver-related env vars on target info acquiring --- src/cargo/core/compiler/build_context/target_info.rs | 3 +++ 1 file changed, 3 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..2a3d7fef36de 100644 --- a/src/cargo/core/compiler/build_context/target_info.rs +++ b/src/cargo/core/compiler/build_context/target_info.rs @@ -183,6 +183,9 @@ impl TargetInfo { .arg("___") .arg("--print=file-names") .args(&rustflags) + .env_remove("CARGO_MAKEFLAGS") + .env_remove("MAKEFLAGS") + .env_remove("MFLAGS") .env_remove("RUSTC_LOG"); if let CompileKind::Target(target) = kind {