Skip to content

Commit adcbca4

Browse files
committed
pass jobserver on target info acquiring
1 parent bfb0d19 commit adcbca4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/cargo/core/compiler/build_context/target_info.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ impl TargetInfo {
185185
.args(&rustflags)
186186
.env_remove("RUSTC_LOG");
187187

188+
if let Some(client) = config.jobserver_from_env() {
189+
process.inherit_jobserver(client);
190+
}
191+
188192
if let CompileKind::Target(target) = kind {
189193
process.arg("--target").arg(target.rustc_target());
190194
}

0 commit comments

Comments
 (0)