Skip to content

Commit 058e805

Browse files
committed
Add documentation about target.$triple.runner
1 parent e1a85a6 commit 058e805

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/doc/config.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,20 @@ email = "..."
5757
vcs = "none"
5858

5959
# For the following sections, $triple refers to any valid target triple, not the
60-
# literal string "$triple", and it will apply whenever that target triple is
60+
# literal string "$triple", and it will apply whenever that target triple is
6161
# being compiled to. 'cfg(...)' refers to the Rust-like `#[cfg]` syntax for
6262
# conditional compilation.
63-
[target.$triple]
64-
# This is the linker which is passed to rustc (via `-C linker=`) when the `$triple`
63+
[target.$triple]
64+
# This is the linker which is passed to rustc (via `-C linker=`) when the `$triple`
6565
# is being compiled for. By default this flag is not passed to the compiler.
66-
linker = ".."
67-
# Same but for the library archiver which is passed to rustc via `-C ar=`.
66+
linker = ".."
67+
# Same but for the library archiver which is passed to rustc via `-C ar=`.
6868
ar = ".."
69+
# If a runner is provided, compiled targets for the `$triple` will be executed
70+
# by invoking the specified runner executable with actual target as first argument.
71+
# This applies to `cargo run`, `cargo test` and `cargo bench` commands.
72+
# By default compiled targets are executed directly.
73+
runner = ".."
6974
# custom flags to pass to all compiler invocations that target $triple
7075
# this value overrides build.rustflags when both are present
7176
rustflags = ["..", ".."]

0 commit comments

Comments
 (0)