From a9a4dd02b34675fa2a10aac586421fcc5e2c27de Mon Sep 17 00:00:00 2001 From: SparrowLii Date: Thu, 14 Sep 2023 16:03:43 +0800 Subject: [PATCH 1/2] set parallel_compiler to default --- src/bootstrap/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index e5fdac3ceda7b..5ca2cf4c5e316 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -1429,7 +1429,7 @@ impl Config { set(&mut config.use_lld, rust.use_lld); set(&mut config.lld_enabled, rust.lld); set(&mut config.llvm_tools_enabled, rust.llvm_tools); - config.rustc_parallel = rust.parallel_compiler.unwrap_or(false); + config.rustc_parallel = rust.parallel_compiler.unwrap_or(true); config.rustc_default_linker = rust.default_linker; config.musl_root = rust.musl_root.map(PathBuf::from); config.save_toolstates = rust.save_toolstates.map(PathBuf::from); From 585a491e31401b5ca9cafa222439393cf9fad8c3 Mon Sep 17 00:00:00 2001 From: SparrowLii Date: Fri, 15 Sep 2023 17:53:35 +0800 Subject: [PATCH 2/2] correct rustc_log --- compiler/rustc_log/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/compiler/rustc_log/src/lib.rs b/compiler/rustc_log/src/lib.rs index e7b80c64184bf..0debfcc86dc12 100644 --- a/compiler/rustc_log/src/lib.rs +++ b/compiler/rustc_log/src/lib.rs @@ -82,8 +82,6 @@ pub fn init_env_logger(env: &str) -> Result<(), Error> { .with_verbose_exit(verbose_entry_exit) .with_verbose_entry(verbose_entry_exit) .with_indent_amount(2); - #[cfg(all(parallel_compiler, debug_assertions))] - let layer = layer.with_thread_ids(true).with_thread_names(true); let subscriber = tracing_subscriber::Registry::default().with(filter).with(layer); match env::var(format!("{env}_BACKTRACE")) {