diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-20 17:10:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-20 17:10:32 +0100 |
| commit | 02379e917b2e187997bdabd290e61ecf0744faaf (patch) | |
| tree | 90ecc736327bbe5a68f50eb5e9e16a2fdfdc1295 /src/doc/rustc | |
| parent | d188287a54f1bb202e4c16067a6c4cdff4bdfd6c (diff) | |
| parent | 371bd4643587da89ce1bbe7e577f49d9b8acb990 (diff) | |
| download | rust-02379e917b2e187997bdabd290e61ecf0744faaf.tar.gz rust-02379e917b2e187997bdabd290e61ecf0744faaf.zip | |
Rollup merge of #91606 - joshtriplett:stabilize-print-link-args, r=pnkfelix
Stabilize `-Z print-link-args` as `--print link-args` We have stable options for adding linker arguments; we should have a stable option to help debug linker arguments. Add documentation for the new option. In the documentation, make it clear that the *exact* format of the output is not a stable guarantee.
Diffstat (limited to 'src/doc/rustc')
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 7f482f0f2b1..11925ab9785 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -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 |
