File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/auto/src/doc/trpl Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
8
8
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
9
9
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
10
10
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11
- refs/heads/auto: a8a49fbfc9c8433a03c67007fb4ad30672cfb483
11
+ refs/heads/auto: b6a0d9e17843a2b078e491e10f64a4005b3a7791
12
12
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
13
13
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
14
14
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1
Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ extern {}
22
22
23
23
Note that this feature is currently hidden behind the ` feature(link_args) ` gate
24
24
because this is not a sanctioned way of performing linking. Right now ` rustc `
25
- shells out to the system linker, so it makes sense to provide extra command line
25
+ shells out to the system linker (` gcc ` on most systems, ` link.exe ` on MSVC),
26
+ so it makes sense to provide extra command line
26
27
arguments, but this will not always be the case. In the future ` rustc ` may use
27
28
LLVM directly to link native libraries, in which case ` link_args ` will have no
28
- meaning.
29
+ meaning. You can achieve the same effect as the ` link-args ` attribute with the
30
+ ` -C link-args ` argument to ` rustc ` .
29
31
30
32
It is highly recommended to * not* use this attribute, and rather use the more
31
33
formal ` #[link(...)] ` attribute on ` extern ` blocks instead.
You can’t perform that action at this time.
0 commit comments