From 63e4efe5fd7a8f7a2a161ea0768e5e1a1c36f0e7 Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Fri, 25 Aug 2023 00:22:30 +0800 Subject: [PATCH] Add `target..linker` doc --- src/doc/src/reference/config.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/doc/src/reference/config.md b/src/doc/src/reference/config.md index d1f2b04d35e4..3a21039b5ba1 100644 --- a/src/doc/src/reference/config.md +++ b/src/doc/src/reference/config.md @@ -1098,6 +1098,12 @@ This option is deprecated and unused. Specifies the linker which is passed to `rustc` (via [`-C linker`]) when the [``] is being compiled for. By default, the linker is not overridden. +##### `target..linker` +This is similar to the [target linker](#targettriplelinker), but using +a [`cfg()` expression]. If both a [``] and `` runner match, +the `` will take precedence. It is an error if more than one +`` runner matches the current target. + ##### `target..runner` * Type: string or array of strings ([program path with args]) * Default: none