From 94d6e652e8e1214bd3ed45f2b62e906b24e4c01a Mon Sep 17 00:00:00 2001 From: BlackHoleFox Date: Mon, 3 Jan 2022 13:41:46 -0600 Subject: [PATCH] Remove codegen-units Windows workaround https://github.com/rust-lang/rust/issues/85461 is now fixed on Nightly --- 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 ");