Skip to content

Commit 901cd9e

Browse files
committed
test for the default parallel compiler on threads=2
1 parent beef07f commit 901cd9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_session/src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1800,7 +1800,7 @@ written to standard error output)"),
18001800
/// in the future. Note that -Zthreads=0 is the way to get
18011801
/// the num_cpus behavior.
18021802
#[rustc_lint_opt_deny_field_access("use `Session::threads` instead of this field")]
1803-
threads: usize = (1, parse_threads, [UNTRACKED],
1803+
threads: usize = (2, parse_threads, [UNTRACKED],
18041804
"use a thread pool with N threads"),
18051805
time_llvm_passes: bool = (false, parse_bool, [UNTRACKED],
18061806
"measure time of each LLVM pass (default: no)"),

src/bootstrap/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,7 @@ impl Config {
14311431
set(&mut config.use_lld, rust.use_lld);
14321432
set(&mut config.lld_enabled, rust.lld);
14331433
set(&mut config.llvm_tools_enabled, rust.llvm_tools);
1434-
config.rustc_parallel = rust.parallel_compiler.unwrap_or(false);
1434+
config.rustc_parallel = rust.parallel_compiler.unwrap_or(true);
14351435
config.rustc_default_linker = rust.default_linker;
14361436
config.musl_root = rust.musl_root.map(PathBuf::from);
14371437
config.save_toolstates = rust.save_toolstates.map(PathBuf::from);

0 commit comments

Comments
 (0)