From 1b486d3c1cc358c0085516c92fd0a9cf5739690c Mon Sep 17 00:00:00 2001 From: SparrowLii <liyuan179@huawei.com> Date: Mon, 31 Mar 2025 10:13:55 +0800 Subject: [PATCH] set default threads to 8 --- compiler/rustc_session/src/options.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs index 4cc666b3e37d2..06f89880ff7b5 100644 --- a/compiler/rustc_session/src/options.rs +++ b/compiler/rustc_session/src/options.rs @@ -2514,7 +2514,7 @@ written to standard error output)"), /// in the future. Note that -Zthreads=0 is the way to get /// the num_cpus behavior. #[rustc_lint_opt_deny_field_access("use `Session::threads` instead of this field")] - threads: usize = (1, parse_threads, [UNTRACKED], + threads: usize = (8, parse_threads, [UNTRACKED], "use a thread pool with N threads"), time_llvm_passes: bool = (false, parse_bool, [UNTRACKED], "measure time of each LLVM pass (default: no)"),