Skip to content

Commit 95c6fc4

Browse files
committed
Suggest 'profile' flag
1 parent 13b3c34 commit 95c6fc4

File tree

1 file changed

+2
-2
lines changed
  • src/doc/unstable-book/src/compiler-flags

1 file changed

+2
-2
lines changed

src/doc/unstable-book/src/compiler-flags/profile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ The tracking issue for this feature is: None
66

77
This feature allows the generation of code coverage reports.
88

9-
Set the compiler flags `-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads` to enable gcov profiling.
9+
Set the `-Zprofile` compiler flag in order to enable gcov profiling.
1010

1111
For example:
1212
```Bash
1313
cargo new testgcov --bin
1414
cd testgcov
15-
export RUSTFLAGS="-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads"
15+
export RUSTFLAGS="-Zprofile"
1616
cargo build
1717
cargo run
1818
```

0 commit comments

Comments
 (0)