diff options
| author | gftea <1705787+gftea@users.noreply.github.com> | 2022-12-20 14:45:19 +0100 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2023-01-16 06:27:29 -0800 |
| commit | c1f1f60bcbb7a0f4021e8aa1b6fa7113f2c6d27a (patch) | |
| tree | 85e059e22acde0229247ae4b8c74f53f14225961 | |
| parent | a5bfc25c93d2549887848529382892f93c95207d (diff) | |
| download | rust-c1f1f60bcbb7a0f4021e8aa1b6fa7113f2c6d27a.tar.gz rust-c1f1f60bcbb7a0f4021e8aa1b6fa7113f2c6d27a.zip | |
Update instrument-coverage.md
Document the default for LLVM_PROFILE_FILE and add a recemmondation for setting it for older versions of Rust which had a different default.
| -rw-r--r-- | src/doc/rustc/src/instrument-coverage.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/doc/rustc/src/instrument-coverage.md b/src/doc/rustc/src/instrument-coverage.md index 38fd5c96997..da91e25595c 100644 --- a/src/doc/rustc/src/instrument-coverage.md +++ b/src/doc/rustc/src/instrument-coverage.md @@ -201,6 +201,8 @@ $ RUSTFLAGS="-C instrument-coverage" \ cargo test --tests ``` +> **Note**: The default for `LLVM_PROFILE_FILE` is `default_%m_%p.profraw`. Versions prior to 1.65 had a default of `default.profraw`, so if using those earlier versions, it is recommended to explicitly set `LLVM_PROFILE_FILE="default_%m_%p.profraw"` to avoid having multiple tests overwrite the `.profraw` files. + Make note of the test binary file paths, displayed after the word "`Running`" in the test output: ```text |
