From 97f92af7dc5d637e6bbdd75deb3f9dc7ef7229ba Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 30 Jul 2021 21:10:38 -0500 Subject: [PATCH] [WIP] Build the compiler with a single CGU --- 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 4b3c25b02c278..a211c8256d647 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -869,7 +869,7 @@ impl Config { backends.iter().map(|s| INTERNER.intern_str(s)).collect(); } - config.rust_codegen_units = rust.codegen_units.map(threads_from_config); + config.rust_codegen_units = Some(1); config.rust_codegen_units_std = rust.codegen_units_std.map(threads_from_config); config.rust_profile_use = flags.rust_profile_use.or(rust.profile_use); config.rust_profile_generate = flags.rust_profile_generate.or(rust.profile_generate);