From f5a239b49ebf4bb3ab1482521df22086fa9ed127 Mon Sep 17 00:00:00 2001 From: BlackHoleFox Date: Mon, 3 Jan 2022 16:58:21 -0600 Subject: [PATCH] Remove LLVM codegen-units Windows workaround (#925) --- src/cargo.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cargo.rs b/src/cargo.rs index 17d460bfb8..467993d195 100644 --- a/src/cargo.rs +++ b/src/cargo.rs @@ -566,9 +566,6 @@ fn clean_doctest_folder>(doctest_dir: P) { fn handle_llvm_flags(value: &mut String, config: &Config) { if config.engine() == TraceEngine::Llvm { value.push_str("-Z instrument-coverage "); - if cfg!(windows) { - value.push_str("-C codegen-units=1 "); - } } if cfg!(not(windows)) { value.push_str(" -C link-dead-code ");