We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13b3c34 commit 95c6fc4Copy full SHA for 95c6fc4
src/doc/unstable-book/src/compiler-flags/profile.md
@@ -6,13 +6,13 @@ The tracking issue for this feature is: None
6
7
This feature allows the generation of code coverage reports.
8
9
-Set the compiler flags `-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads` to enable gcov profiling.
+Set the `-Zprofile` compiler flag in order to enable gcov profiling.
10
11
For example:
12
```Bash
13
cargo new testgcov --bin
14
cd testgcov
15
-export RUSTFLAGS="-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads"
+export RUSTFLAGS="-Zprofile"
16
cargo build
17
cargo run
18
```
0 commit comments