Skip to content

Commit 5264530

Browse files
authored
indicate full hierarchy of config option (rust-lang#1776)
1 parent 075c46f commit 5264530

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/llvm-coverage-instrumentation.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ statically links coverage-instrumented binaries with LLVM runtime code
5656
([compiler-rt][compiler-rt-profile]) that implements program hooks
5757
(such as an `exit` hook) to write the counter values to the `.profraw` file.
5858

59-
In the `rustc` source tree, `library/profiler_builtins` bundles the LLVM
60-
`compiler-rt` code into a Rust library crate. (When building `rustc`, the
61-
`profiler_builtins` library is only included when `profiler = true` is set
62-
in `rustc`'s `config.toml`.)
59+
In the `rustc` source tree,
60+
`library/profiler_builtins` bundles the LLVM `compiler-rt` code into a Rust library crate.
61+
Note that when building `rustc`,
62+
`profiler_builtins` is only included when `build.profiler = true` is set in `config.toml`.
6363

6464
When compiling with `-C instrument-coverage`,
65-
[`CrateLoader::postprocess()`][crate-loader-postprocess] dynamically loads the
66-
`profiler_builtins` library by calling `inject_profiler_runtime()`.
65+
[`CrateLoader::postprocess()`][crate-loader-postprocess] dynamically loads
66+
`profiler_builtins` by calling `inject_profiler_runtime()`.
6767

6868
[compiler-rt-profile]: https://github.com/llvm/llvm-project/tree/main/compiler-rt/lib/profile
6969
[crate-loader-postprocess]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_metadata/creader/struct.CrateLoader.html#method.postprocess

0 commit comments

Comments
 (0)