Skip to content

Commit

Permalink
Limit the number of test threads to work around rust-lang/rust#91092
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jun 13, 2022
1 parent 7a0cfdc commit 731a921
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

- Limit the number of test threads to work around [rust-lang/rust#91092](https://github.com/rust-lang/rust/issues/91092). ([#184](https://github.com/taiki-e/cargo-llvm-cov/pull/184))

## [0.4.5] - 2022-06-02

- Fix handling of `RUSTC_WRAPPER`, `RUSTC`, and similar environment variables and configs. ([#180](https://github.com/taiki-e/cargo-llvm-cov/pull/180))
Expand Down
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,8 @@ fn set_env(cx: &Context, target: &mut impl EnvTarget) {
}
target.set("LLVM_PROFILE_FILE", llvm_profile_file.as_str());
target.set("CARGO_INCREMENTAL", "0");
// Workaround for https://github.com/rust-lang/rust/issues/91092
target.set("RUST_TEST_THREADS", "1");
}

fn has_z_flag(args: &Args, name: &str) -> bool {
Expand Down

0 comments on commit 731a921

Please sign in to comment.