@@ -105,7 +105,7 @@ one detailed below.
105
105
to re-run the script.
106
106
* [ ` cargo::rustc-link-arg=FLAG ` ] ( #rustc-link-arg ) --- Passes custom flags to a
107
107
linker for benchmarks, binaries, ` cdylib ` crates, examples, and tests.
108
- * [ ` cargo::rustc-cdylib- link-arg=FLAG ` ] ( #rustc-cdylib-link-arg ) --- Passes custom
108
+ * [ ` cargo::rustc-link-arg-cdylib =FLAG ` ] ( #rustc-cdylib-link-arg ) --- Passes custom
109
109
flags to a linker for cdylib crates.
110
110
* [ ` cargo::rustc-link-arg-bin=BIN=FLAG ` ] ( #rustc-link-arg-bin ) --- Passes custom
111
111
flags to a linker for the binary ` BIN ` .
@@ -147,13 +147,16 @@ linker script.
147
147
148
148
[ link-arg ] : ../../rustc/codegen-options/index.md#link-arg
149
149
150
- ### ` cargo::rustc-cdylib- link-arg=FLAG ` {#rustc-cdylib-link-arg}
150
+ ### ` cargo::rustc-link-arg-cdylib =FLAG ` {#rustc-cdylib-link-arg}
151
151
152
- The ` rustc-cdylib- link-arg ` instruction tells Cargo to pass the [ `-C
152
+ The ` rustc-link-arg-cdylib ` instruction tells Cargo to pass the [ `-C
153
153
link-arg=FLAG` option] [ link-arg ] to the compiler, but only when building a
154
154
` cdylib ` library target. Its usage is highly platform specific. It is useful
155
155
to set the shared library version or the runtime-path.
156
156
157
+ For historical reasons, the ` cargo::rustc-cdylib-link-arg ` form is an alias
158
+ for ` cargo::rustc-link-arg-cdylib ` , and has the same meaning.
159
+
157
160
### ` cargo::rustc-link-arg-bin=BIN=FLAG ` {#rustc-link-arg-bin}
158
161
159
162
The ` rustc-link-arg-bin ` instruction tells Cargo to pass the [ `-C
0 commit comments