Skip to content

Commit c9cc3b9

Browse files
committed
Add target.<cfg>.linker docs
1 parent 7cbc858 commit c9cc3b9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/doc/src/reference/config.md

+6
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,12 @@ This option is deprecated and unused.
10981098
Specifies the linker which is passed to `rustc` (via [`-C linker`]) when the
10991099
[`<triple>`] is being compiled for. By default, the linker is not overridden.
11001100

1101+
##### `target.<cfg>.linker`
1102+
This is similar to the [target linker](#targettriplelinker), but using
1103+
a [`cfg()` expression]. If both a [`<triple>`] and `<cfg>` runner match,
1104+
the `<triple>` will take precedence. It is an error if more than one
1105+
`<cfg>` runner matches the current target.
1106+
11011107
##### `target.<triple>.runner`
11021108
* Type: string or array of strings ([program path with args])
11031109
* Default: none

0 commit comments

Comments
 (0)