Skip to content

Commit

Permalink
Don't emit codegen-units=1 when stable_coverage is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ldm0 committed Jul 24, 2022
1 parent a267540 commit 6d97ce3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ fn set_env(cx: &Context, env: &mut impl EnvTarget) {
} else {
// TODO: drop support for `-Z instrument-coverage` in the future major release.
rustdocflags.push_str(" -Z instrument-coverage");
if cfg!(windows) {
rustdocflags.push_str(" -C codegen-units=1");
}
}
let _ =
write!(rustdocflags, " -Z unstable-options --persist-doctests {}", cx.ws.doctests_dir);
if cfg!(windows) {
rustdocflags.push_str(" -C codegen-units=1");
}
if !cx.cov.no_cfg_coverage {
rustdocflags.push_str(" --cfg coverage");
}
Expand Down

0 comments on commit 6d97ce3

Please sign in to comment.