about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-11-16 15:39:45 +0100
committerGitHub <noreply@github.com>2022-11-16 15:39:45 +0100
commitfbcd751ea15e96c293f83655be31e64a5751fa36 (patch)
tree6e993402123b9e222c4be4fa8b9666d8448abc6b /src
parent56a28a65f54b846abc93945a58a5e3b93b109dc6 (diff)
parent0b6dce43096aff3eb8a3e0e43442441185129025 (diff)
downloadrust-fbcd751ea15e96c293f83655be31e64a5751fa36.tar.gz
rust-fbcd751ea15e96c293f83655be31e64a5751fa36.zip
Rollup merge of #104137 - StackDoubleFlow:err-lsc-unsupported, r=bjorn3
Issue error when -C link-self-contained option is used on unsupported platforms

The documentation was also updated to reflect this.

I'm assuming the supported platforms are the same as initially written in [RELEASES.md](https://github.com/rust-lang/rust/blob/master/RELEASES.md#compiler-17).

Fixes #103576
Diffstat (limited to 'src')
-rw-r--r--src/doc/rustc/src/codegen-options/index.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/rustc/src/codegen-options/index.md b/src/doc/rustc/src/codegen-options/index.md
index f5a49410ea5..7e355b7fccf 100644
--- a/src/doc/rustc/src/codegen-options/index.md
+++ b/src/doc/rustc/src/codegen-options/index.md
@@ -210,8 +210,8 @@ metrics.
 
 ## link-self-contained
 
-On targets that support it this flag controls whether the linker will use libraries and objects
-shipped with Rust instead or those in the system.
+On `windows-gnu`, `linux-musl`, and `wasi` targets, this flag controls whether the
+linker will use libraries and objects shipped with Rust instead or those in the system.
 It takes one of the following values:
 
 * no value: rustc will use heuristic to disable self-contained mode if system has necessary tools.