Skip to content

Commit 97ddada

Browse files
committed
---
yaml --- r: 235778 b: refs/heads/stable c: b6a0d9e h: refs/heads/master v: v3
1 parent c2691e3 commit 97ddada

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: a8a49fbfc9c8433a03c67007fb4ad30672cfb483
32+
refs/heads/stable: b6a0d9e17843a2b078e491e10f64a4005b3a7791
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/doc/trpl/advanced-linking.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ extern {}
2222

2323
Note that this feature is currently hidden behind the `feature(link_args)` gate
2424
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
2627
arguments, but this will not always be the case. In the future `rustc` may use
2728
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`.
2931

3032
It is highly recommended to *not* use this attribute, and rather use the more
3133
formal `#[link(...)]` attribute on `extern` blocks instead.

0 commit comments

Comments
 (0)