Skip to content

Commit

Permalink
Add target.<cfg>.linker doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Aug 25, 2023
1 parent 2a94b4a commit a0395c4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/doc/src/reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,17 @@ 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].

The config precedence is:
1. `host.<triple>.linker`, if [host-config](unstable.md#host-config) is enabled.
2. `target.<triple>.linker`
3. `target.<cfg>.linker`

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 a0395c4

Please sign in to comment.