-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
219: Improve handling of cases where llvm-tools-preview is not installed r=taiki-e a=taiki-e **TL;DR:** You no longer need to install `llvm-tools-preview` before running cargo-llvm-cov in most cases. Previously, cargo-llvm-cov exit with error suggesting the installation of `llvm-tools-preview`. The new logic is based on the logic used by Miri when `rust-src` component or `xargo` is not installed. - cargo-llvm-cov asks the user if they want to install the `llvm-tools-preview`, and if the user allows it, cargo-llvm-cov will install the `llvm-tools-preview`. - On CI, cargo-llvm-cov will install the `llvm-tools-preview` without asking the user (interactive prompts don't work on CI). Additionally, this adds an environment variable to control the behavior here. - If `CARGO_LLVM_COV_SETUP=no` environment variable is set, cargo-llvm-cov exit with error suggesting the installation of `llvm-tools-preview`. This matches with the previous behavior. - If `CARGO_LLVM_COV_SETUP=yes` environment variable is set, cargo-llvm-cov will install the `llvm-tools-preview` without asking the user. This matches with the behavior on CI. Co-authored-by: Taiki Endo <[email protected]>
- Loading branch information
Showing
3 changed files
with
105 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters