Skip to content

Commit c1f1f60

Browse files
gfteaehuss
authored andcommitted
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.
1 parent a5bfc25 commit c1f1f60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/rustc/src/instrument-coverage.md

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ $ RUSTFLAGS="-C instrument-coverage" \
201201
cargo test --tests
202202
```
203203

204+
> **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.
205+
204206
Make note of the test binary file paths, displayed after the word "`Running`" in the test output:
205207

206208
```text

0 commit comments

Comments
 (0)