diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-11-06 13:30:10 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-11-06 13:30:10 -0800 |
| commit | fcfd307493807d3ae34bbd80378f2d07f6356394 (patch) | |
| tree | 8acb5486e8514b1d6825895f97327cf1e58281e4 /src/doc/reference.md | |
| parent | 8a25e071e8ca281189663d23de5e317e87004a48 (diff) | |
| parent | d108613ba00edea07ff7e233e3e9c0766132cd3e (diff) | |
| download | rust-fcfd307493807d3ae34bbd80378f2d07f6356394.tar.gz rust-fcfd307493807d3ae34bbd80378f2d07f6356394.zip | |
rollup merge of #18373 : steveklabnik/gh18288
Diffstat (limited to 'src/doc/reference.md')
| -rw-r--r-- | src/doc/reference.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index 96d6bece230..1c338aa8118 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -1961,8 +1961,10 @@ On an `extern` block, the following attributes are interpreted: name and type. This is feature gated and the exact behavior is implementation-defined (due to variety of linker invocation syntax). - `link` - indicate that a native library should be linked to for the - declarations in this block to be linked correctly. See [external - blocks](#external-blocks) + declarations in this block to be linked correctly. `link` supports an optional `kind` + 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 interpreted: |
