-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coverage: apply
-Cinstrument-coverage
to workspace crates only (#10239
) When collecting coverage we want to instrument only the crates in our workspace, and not the external dependencies. There is no value in doing otherwise – we don’t run tests for our dependencies anyway. Furthermore, instrumenting the external dependencies runs a risk of significant performance regressions, such as seen in #10201.
- Loading branch information
Showing
3 changed files
with
22 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
## When collecting coverage we want to instrument only the crates in our workspace, and not the | ||
## external dependencies (there is no value in doing so – we don’t run tests for our dependencies | ||
## anyway.) Furthermore, instrumenting the crates like these run a risk of significant performance | ||
## regressions, such as seen in #10201 | ||
|
||
RUSTC="$1"; shift | ||
exec "$RUSTC" -Cinstrument-coverage --cfg=coverage "$@" |