From 1634e4b82bcf21d205cd6d5b84715cdbb418c53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Wed, 16 Sep 2026 12:39:25 +0200 Subject: [PATCH] Use `--jobs-frontend` instead of `-Zthreads` --- collector/src/bin/rustc-fake.rs | 2 +- collector/src/compile/execute/mod.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/collector/src/bin/rustc-fake.rs b/collector/src/bin/rustc-fake.rs index aa15a78ed..273f12847 100644 --- a/collector/src/bin/rustc-fake.rs +++ b/collector/src/bin/rustc-fake.rs @@ -80,7 +80,7 @@ fn main() { .ok() .and_then(|v| v.parse::().ok()) { - args.push(OsString::from(format!("-Zthreads={count}"))); + args.push(OsString::from(format!("--jobs-frontend={count}"))); } args.push(OsString::from("-Adeprecated")); diff --git a/collector/src/compile/execute/mod.rs b/collector/src/compile/execute/mod.rs index 078fc9618..a424631b6 100644 --- a/collector/src/compile/execute/mod.rs +++ b/collector/src/compile/execute/mod.rs @@ -423,8 +423,11 @@ impl<'a> CargoProcess<'a> { cmd.arg("-p").arg(self.get_pkgid(self.cwd)?); assert!( - !self.rustc_args.iter().any(|arg| arg.contains("-Zthreads")), - "rustc_args should not contain -Zthreads, set frontend_threads in perf-config.json instead" + !self + .rustc_args + .iter() + .any(|arg| arg.contains("--jobs-frontend")), + "rustc_args should not contain --jobs-frontend, set frontend_threads in perf-config.json instead" ); cmd.env( "RUSTC_THREAD_COUNT",