Skip to content

Commit e84fd16

Browse files
committed
pass jobserver on fix proxy rustc
1 parent bfb0d19 commit e84fd16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cargo/ops/fix.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,11 @@ pub fn fix_exec_rustc(config: &Config, lock_addr: &str) -> CargoResult<()> {
447447
// things like colored output to work correctly.
448448
rustc.arg(arg);
449449
}
450+
// Removes `FD_CLOEXEC` set by `jobserver::Client` to pass jobserver
451+
// as environment variables specify.
452+
if let Some(client) = config.jobserver_from_env() {
453+
rustc.inherit_jobserver(client);
454+
}
450455
debug!("calling rustc to display remaining diagnostics: {rustc}");
451456
exit_with(rustc.status()?);
452457
}

0 commit comments

Comments
 (0)