Skip to content

Commit a0395c4

Browse files
committed
Add target.<cfg>.linker doc
1 parent 2a94b4a commit a0395c4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/doc/src/reference/config.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,17 @@ 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].
1104+
1105+
The config precedence is:
1106+
1. `host.<triple>.linker`, if [host-config](unstable.md#host-config) is enabled.
1107+
2. `target.<triple>.linker`
1108+
3. `target.<cfg>.linker`
1109+
1110+
It is an error if more than one `<cfg>` runner matches the current target.
1111+
11011112
##### `target.<triple>.runner`
11021113
* Type: string or array of strings ([program path with args])
11031114
* Default: none

0 commit comments

Comments
 (0)