Skip to content

Commit

Permalink
Add target.<cfg>.linker doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-rustin committed Aug 25, 2023
1 parent 1885cf6 commit 63e4efe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/doc/src/reference/config.md
Expand Up @@ -1098,6 +1098,12 @@ This option is deprecated and unused.
Specifies the linker which is passed to `rustc` (via [`-C linker`]) when the
[`<triple>`] is being compiled for. By default, the linker is not overridden.

##### `target.<cfg>.linker`
This is similar to the [target linker](#targettriplelinker), but using
a [`cfg()` expression]. If both a [`<triple>`] and `<cfg>` runner match,
the `<triple>` will take precedence. It is an error if more than one
`<cfg>` runner matches the current target.

##### `target.<triple>.runner`
* Type: string or array of strings ([program path with args])
* Default: none
Expand Down

0 comments on commit 63e4efe

Please sign in to comment.