From 95c6fc49441d5387c5495da4eb7b40537c218c1a Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Tue, 6 Jun 2017 11:10:34 +0100 Subject: [PATCH] Suggest 'profile' flag --- src/doc/unstable-book/src/compiler-flags/profile.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/unstable-book/src/compiler-flags/profile.md b/src/doc/unstable-book/src/compiler-flags/profile.md index 1c4ae5207ff..3b4f34e67c5 100644 --- a/src/doc/unstable-book/src/compiler-flags/profile.md +++ b/src/doc/unstable-book/src/compiler-flags/profile.md @@ -6,13 +6,13 @@ The tracking issue for this feature is: None This feature allows the generation of code coverage reports. -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. For example: ```Bash cargo new testgcov --bin cd testgcov -export RUSTFLAGS="-Ccodegen-units=1 -Clink-dead-code -Cpasses=insert-gcov-profiling -Zno-landing-pads" +export RUSTFLAGS="-Zprofile" cargo build cargo run ```