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