Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit d9881ad

Browse files
RUSTFLAGS is not passed to doc tests (#74)
- RUSTDOCFLAGS is used to pass arguments to doc tests Tracking issue: rust-lang/rust#43031
1 parent 770fa90 commit d9881ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
env:
3131
CARGO_INCREMENTAL: '0'
3232
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
33+
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
3334
- uses: actions-rs/[email protected]
3435
```
3536
@@ -59,7 +60,7 @@ jobs:
5960
3. Create a configuration file for `grcov`, see [config section](#config) for details.
6061

6162
4. Execute the `cargo test` command.
62-
It is required to add `CARGO_INCREMENTAL` and `RUSTFLAGS` environment variables
63+
It is required to add `CARGO_INCREMENTAL`, `RUSTFLAGS` and `RUSTDOCFLAGS` environment variables
6364
for this command, see [grcov](https://github.com/mozilla/grcov) page for details.
6465

6566
```yaml
@@ -70,6 +71,7 @@ jobs:
7071
env:
7172
CARGO_INCREMENTAL: '0'
7273
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
74+
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
7375
```
7476

7577
Note that `-Clink-dead-code` flag might be broken for macOS environments,

0 commit comments

Comments
 (0)