Skip to content

Commit 92b7591

Browse files
committed
Add a best guess at what line-directives-only means
1 parent 7b453b9 commit 92b7591

File tree

1 file changed

+3
-3
lines changed
  • src/doc/rustc/src/codegen-options

1 file changed

+3
-3
lines changed

src/doc/rustc/src/codegen-options/index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ This flag controls the generation of debug information. It takes one of the
7272
following values:
7373

7474
* `0` or `none`: no debug info at all (the default).
75-
* `line-directives-only`: line info directives only, (For the nvptx* targets this enables [profiling](https://reviews.llvm.org/D46061), but on other targets the behavior is unspecified).
76-
* `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. variable or function parameter info).
77-
* `1` or `limited`: debug info without type information.
75+
* `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.
76+
* `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.
77+
* `1` or `limited`: debug info without type or variable-level information.
7878
* `2` or `full`: full debug info.
7979

8080
Note: The [`-g` flag][option-g-debug] is an alias for `-C debuginfo=2`.

0 commit comments

Comments
 (0)