@@ -26,10 +26,10 @@ Some unstable features will require you to specify the `cargo-features` key in
26
26
The ` -Z extra-link-arg ` flag makes the following two instructions available
27
27
in build scripts:
28
28
29
- * [ ` cargo:rustc-link-arg-bins=FLAG ` ] ( #rustc-link-arg-bins ) — Passes custom
30
- flags to a linker for bin crates .
31
- * [ ` cargo:rustc-link-arg=FLAG ` ] ( #rustc-link-arg ) — Passes custom
32
- flags to a linker for all supported crates.
29
+ * [ ` cargo:rustc-link-arg-bins=FLAG ` ] ( #rustc-link-arg-bins ) – Passes custom
30
+ flags to a linker for binaries .
31
+ * [ ` cargo:rustc-link-arg=FLAG ` ] ( #rustc-link-arg ) – Passes custom flags to a
32
+ linker for benchmarks, binaries, ` cdylib ` crates, examples, and tests .
33
33
34
34
<a id =" rustc-link-arg-bins " ></a >
35
35
#### ` cargo:rustc-link-arg-bins=FLAG `
@@ -45,9 +45,10 @@ to set a linker script or other linker options.
45
45
#### ` cargo:rustc-link-arg=FLAG `
46
46
47
47
The ` rustc-link-arg ` instruction tells Cargo to pass the [ ` -C link-arg=FLAG `
48
- option] [ link-arg ] to the compiler, but only when building a supported target
49
- (currently a binary or ` cdylib ` library). Its usage is highly platform
50
- specific. It is useful to set the shared library version or linker script.
48
+ option] [ link-arg ] to the compiler, but only when building supported targets
49
+ (benchmarks, binaries, ` cdylib ` crates, examples, and tests). Its usage is
50
+ highly platform specific. It is useful to set the shared library version or
51
+ linker script.
51
52
52
53
[ link-arg ] : ../../rustc/codegen-options/index.md#link-arg
53
54
0 commit comments