Skip to content

Commit dbab134

Browse files
committed
Use relative links in documentation
1 parent a982bcc commit dbab134

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/doc/src/reference/profiles.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,20 @@ amount of debug information included in the compiled binary.
6767

6868
The valid options are:
6969

70-
* `0`, `false`, or `"none"`: no debug info at all
71-
* `"line-directives-only"`: line info directives only. For the nvptx* targets this enables [profiling](https://reviews.llvm.org/D46061). For other use cases, `line-tables-only` is the better, more compatible choice.
70+
* `0`, `false`, or `"none"`: no debug info at all, default for [`release`](#release)
71+
* `"line-directives-only"`: line info directives only. For the nvptx* targets this enables [profiling]. For other use cases, `line-tables-only` is the better, more compatible choice.
7272
* `"line-tables-only"`: line tables only. Generates the minimal amount of debug info for backtraces with filename/line number info, but not anything else, i.e. no variable or function parameter info.
7373
* `1` or `"limited"`: debug info without type or variable-level information. Generates more detailed module-level info than `line-tables-only`.
74-
* `2`, `true`, or `"full"`: full debug info
74+
* `2`, `true`, or `"full"`: full debug info, default for [`dev`](#dev)
75+
76+
For more information on what each option does see `rustc`'s docs on [debuginfo].
7577

7678
You may wish to also configure the [`split-debuginfo`](#split-debuginfo) option
7779
depending on your needs as well.
7880

7981
[`-C debuginfo` flag]: ../../rustc/codegen-options/index.html#debuginfo
82+
[debuginfo]: ../../rustc/codegen-options/index.html#debuginfo
83+
[profiling]: https://reviews.llvm.org/D46061
8084

8185
#### split-debuginfo
8286

0 commit comments

Comments
 (0)