parent
e2cd4597da
commit
d108613ba0
@ -1957,8 +1957,10 @@ On an `extern` block, the following attributes are interpreted:
|
|||||||
name and type. This is feature gated and the exact behavior is
|
name and type. This is feature gated and the exact behavior is
|
||||||
implementation-defined (due to variety of linker invocation syntax).
|
implementation-defined (due to variety of linker invocation syntax).
|
||||||
- `link` - indicate that a native library should be linked to for the
|
- `link` - indicate that a native library should be linked to for the
|
||||||
declarations in this block to be linked correctly. See [external
|
declarations in this block to be linked correctly. `link` supports an optional `kind`
|
||||||
blocks](#external-blocks)
|
key with three possible values: `dylib`, `static`, and `framework`. See [external blocks](#external-blocks) for more about external blocks. Two
|
||||||
|
examples: `#[link(name = "readline")]` and
|
||||||
|
`#[link(name = "CoreFoundation", kind = "framework")]`.
|
||||||
|
|
||||||
On declarations inside an `extern` block, the following attributes are
|
On declarations inside an `extern` block, the following attributes are
|
||||||
interpreted:
|
interpreted:
|
||||||
|
Loading…
Reference in New Issue
Block a user