Skip to content

Commit

Permalink
Document --print link-args
Browse files Browse the repository at this point in the history
The documentation makes it clear that the *exact* format of the output
is not a stable guarantee.
  • Loading branch information
joshtriplett committed Jan 9, 2022
1 parent cd626fe commit 371bd46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/doc/rustc/src/command-line-arguments.md
Expand Up @@ -170,6 +170,12 @@ The valid types of print values are:
include a diagnostic note that indicates the linker flags to use when
linking the resulting static library. The note starts with the text
`native-static-libs:` to make it easier to fetch the output.
- `link-args` — This flag does not disable the `--emit` step. When linking,
this flag causes `rustc` to print the full linker invocation in a
human-readable form. This can be useful when debugging linker options. The
exact format of this debugging output is not a stable guarantee, other than
that it will include the linker executable and the text of each command-line
argument passed to the linker.

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

Expand Down

0 comments on commit 371bd46

Please sign in to comment.