Skip to content

Commit a740ef1

Browse files
Rollup merge of rust-lang#58544 - TheBiggerGuy:rustc-doc-cli-args, r=TimNN
Fix doc for rustc "-g" flag The rustc `-g` CLI flag was miss documented to be a synonym of `-C debug-level=2` and not `-C debuglevel=2`. Also add links to the codegen docs for each synonym. I am unsure of this will conflict with work on rust-lang#52938
2 parents e882771 + 88e462b commit a740ef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/rustc/src/command-line-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ This flag prints out various information about the compiler.
4242

4343
## `-g`: include debug information
4444

45-
A synonym for `-C debug-level=2`.
45+
A synonym for `-C debuginfo=2`, for more see [here](codegen-options/index.html#debuginfo).
4646

4747
## `-O`: optimize your code
4848

49-
A synonym for `-C opt-level=2`.
49+
A synonym for `-C opt-level=2`, for more see [here](codegen-options/index.html#opt-level).
5050

5151
## `-o`: filename of the output
5252

0 commit comments

Comments
 (0)