File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ extern {}
2222
2323Note that this feature is currently hidden behind the ` feature(link_args) ` gate
2424because 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
2627arguments, but this will not always be the case. In the future ` rustc ` may use
2728LLVM 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
3032It is highly recommended to * not* use this attribute, and rather use the more
3133formal ` #[link(...)] ` attribute on ` extern ` blocks instead.
You can’t perform that action at this time.
0 commit comments