Skip to content

Commit 3590686

Browse files
committed
Clarify documentation regarding +bundle linkage modifier
1 parent e94bda3 commit 3590686

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/rustc/src/command-line-arguments.md

+4
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,15 @@ attribute or on the command-line, it will link a dynamic library if available,
6262
otherwise it will use a static library. If the kind is specified on the
6363
command-line, it will override the kind specified in a `link` attribute.
6464

65+
Note that if you don't specify the `KIND`, the default linkage modifiers won't be applied.
66+
For instance, [`+bundle` linkage modifier][bundle-modifier] won't be used in conjunction with static library by default.
67+
6568
The name used in a `link` attribute may be overridden using the form `-l
6669
ATTR_NAME:LINK_NAME` where `ATTR_NAME` is the name in the `link` attribute,
6770
and `LINK_NAME` is the name of the actual library that will be linked.
6871

6972
[link-attribute]: ../reference/items/external-blocks.html#the-link-attribute
73+
[bundle-modifier]: #linking-modifiers-bundle
7074

7175
### Linking modifiers: `whole-archive`
7276

0 commit comments

Comments
 (0)