Skip to content

Commit b074f5e

Browse files
committed
Add unstable book entry
1 parent 9f925ec commit b074f5e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# `link_arg_attribute`
2+
3+
The tracking issue for this feature is: [#99427]
4+
5+
------
6+
7+
The `link_arg_attribute` feature allows passing arguments into the linker
8+
from inside of the source code. Order is preserved for link attributes as
9+
they were defined on a single extern block:
10+
11+
```rust
12+
#![feature(doc_cfg)]
13+
14+
#[link(kind = "link-arg", name = "--start-group")]
15+
#[link(kind = "static", name = "c")]
16+
#[link(kind = "static", name = "gcc")]
17+
#[link(kind = "link-arg", name = "--end-group")]
18+
extern "C" {}
19+
```
20+
21+
[#99427]: https://github.com/rust-lang/rust/issues/99427

0 commit comments

Comments
 (0)