Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variables to pass additional flags to llvm-cov/llvm-profdata #58

Merged
merged 1 commit into from
Aug 12, 2021

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Aug 11, 2021

This adds two environment variables:

  • CARGO_LLVM_COV_FLAGS to pass additional flags to llvm-cov. (value: space-separated list)
  • CARGO_LLVM_PROFDATA_FLAGS to pass additional flags to llvm-profdata. (value: space-separated list)

@taiki-e
Copy link
Owner Author

taiki-e commented Aug 11, 2021

CI failure is due to bitflags/bitflags#251

@taiki-e
Copy link
Owner Author

taiki-e commented Aug 12, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Aug 12, 2021

Build succeeded:

@bors bors bot merged commit 3bda53a into main Aug 12, 2021
@bors bors bot deleted the env branch August 12, 2021 09:25
@taiki-e taiki-e mentioned this pull request Aug 15, 2021
bors bot added a commit that referenced this pull request Aug 15, 2021
63: Release 0.1.0 r=taiki-e a=taiki-e

Closes #35 

Changes:

- [Update clap to fix build error.](#59)

- [Support latest version of trybuild.](#54)

- [Change output directory of `--html` and `--open` options from `target/llvm-cov` to `target/llvm-cov/html`.](#62)

- [You can now merge the coverages generated under different test conditions by using `--no-report` and `--no-run`.](#55)

  ```sh
  cargo clean
  cargo llvm-cov --no-report --features a
  cargo llvm-cov --no-report --features b
  cargo llvm-cov --no-run --lcov
  ```

- [Add environment variables to pass additional flags to llvm-cov/llvm-profdata.](#58)

  - `CARGO_LLVM_COV_FLAGS` to pass additional flags to llvm-cov. (value: space-separated list)
  - `CARGO_LLVM_PROFDATA_FLAGS` to pass additional flags to llvm-profdata. (value: space-separated list)

- [Fix "Failed to load coverage" error when together used with trybuild.](#49)

- [Fix bug in `--exclude` and `--package` options](#56)

- [Fix bug in color-detection when both `--text` and `--output-dir` used.](#62)

- [`--html` and `--open` options no longer outputs a summary at the same time.](#61)

- [Recognize rustflags and rustdocflags set by config file.](#52)

- Diagnostic improvements.

Co-authored-by: Taiki Endo <te316e89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant