File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed 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