Skip to content

Commit 371bd46

Browse files
committed
Document --print link-args
The documentation makes it clear that the *exact* format of the output is not a stable guarantee.
1 parent cd626fe commit 371bd46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,12 @@ The valid types of print values are:
170170
include a diagnostic note that indicates the linker flags to use when
171171
linking the resulting static library. The note starts with the text
172172
`native-static-libs:` to make it easier to fetch the output.
173+
- `link-args` — This flag does not disable the `--emit` step. When linking,
174+
this flag causes `rustc` to print the full linker invocation in a
175+
human-readable form. This can be useful when debugging linker options. The
176+
exact format of this debugging output is not a stable guarantee, other than
177+
that it will include the linker executable and the text of each command-line
178+
argument passed to the linker.
173179

174180
[conditional compilation]: ../reference/conditional-compilation.html
175181

0 commit comments

Comments
 (0)