We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f925ec commit b074f5eCopy full SHA for b074f5e
src/doc/unstable-book/src/language-features/link-arg-attribute.md
@@ -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