diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-03-14 13:28:34 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2022-05-15 02:45:47 +0300 |
| commit | 4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6 (patch) | |
| tree | b4cdd23b4393d38383b89a25650f34dabf1ec378 /src/doc/rustc | |
| parent | 70b3681bf621bc0de91ffab711b2350068b4c466 (diff) | |
| download | rust-4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6.tar.gz rust-4fa24bcb54cd11ec9c5e95d6d0ef366e512d27d6.zip | |
rustc: Stricter checking for #[link] attributes
Diffstat (limited to 'src/doc/rustc')
| -rw-r--r-- | src/doc/rustc/src/command-line-arguments.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/rustc/src/command-line-arguments.md b/src/doc/rustc/src/command-line-arguments.md index 0d02fa7bd6b..d80e4f20869 100644 --- a/src/doc/rustc/src/command-line-arguments.md +++ b/src/doc/rustc/src/command-line-arguments.md @@ -52,7 +52,8 @@ where `KIND` may be one of: If the kind is specified, then linking modifiers can be attached to it. Modifiers are specified as a comma-delimited string with each modifier prefixed with either a `+` or `-` to indicate that the modifier is enabled or disabled, respectively. -The last boolean value specified for a given modifier wins. \ +Specifying multiple `modifiers` arguments in a single `link` attribute, +or multiple identical modifiers in the same `modifiers` argument is not currently supported. \ Example: `-l static:+whole-archive=mylib`. The kind of library and the modifiers can also be specified in a [`#[link]` |
