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 @@ -1957,8 +1957,10 @@ On an `extern` block, the following attributes are interpreted:
1957
1957
name and type. This is feature gated and the exact behavior is
1958
1958
implementation-defined (due to variety of linker invocation syntax).
1959
1959
- ` link ` - indicate that a native library should be linked to for the
1960
- declarations in this block to be linked correctly. See [ external
1961
- blocks] ( #external-blocks )
1960
+ declarations in this block to be linked correctly. ` link ` supports an optional ` kind `
1961
+ key with three possible values: ` dylib ` , ` static ` , and ` framework ` . See [ external blocks] ( #external-blocks ) for more about external blocks. Two
1962
+ examples: ` #[link(name = "readline")] ` and
1963
+ ` #[link(name = "CoreFoundation", kind = "framework")] ` .
1962
1964
1963
1965
On declarations inside an ` extern ` block, the following attributes are
1964
1966
interpreted:
You can’t perform that action at this time.
0 commit comments