File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ impl BuildOutput {
547
547
"rustc-link-lib" => library_links. push ( value. to_string ( ) ) ,
548
548
"rustc-link-search" => library_paths. push ( PathBuf :: from ( value) ) ,
549
549
"rustc-cdylib-link-arg" => linker_args. push ( ( Some ( LinkType :: Cdylib ) , value) ) ,
550
- "rustc-bin- link-arg" => {
550
+ "rustc-link-arg-bins " => {
551
551
if extra_link_arg {
552
552
linker_args. push ( ( Some ( LinkType :: Bin ) , value) ) ;
553
553
} else {
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ fn parse_links_overrides(
137
137
let args = args. iter ( ) . map ( |v| ( Some ( LinkType :: Cdylib ) , v. 0 . clone ( ) ) ) ;
138
138
output. linker_args . extend ( args) ;
139
139
}
140
- "rustc-bin- link-arg" => {
140
+ "rustc-link-arg-bins " => {
141
141
if extra_link_arg {
142
142
let args = value. list ( key) ?;
143
143
let args = args. iter ( ) . map ( |v| ( Some ( LinkType :: Bin ) , v. 0 . clone ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -26,15 +26,15 @@ 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-bin- link-arg=FLAG ` ] ( #rustc-bin- link-arg ) — Passes custom
29
+ * [ ` cargo:rustc-link-arg-bins =FLAG ` ] ( #rustc-link-arg-bins ) — Passes custom
30
30
flags to a linker for bin crates.
31
31
* [ ` cargo:rustc-link-arg=FLAG ` ] ( #rustc-link-arg ) — Passes custom
32
32
flags to a linker for all supported crates.
33
33
34
- <a id =" rustc-bin- link-arg " ></a >
35
- #### ` cargo:rustc-bin- link-arg=FLAG `
34
+ <a id =" rustc-link-arg-bins " ></a >
35
+ #### ` cargo:rustc-link-arg-bins =FLAG `
36
36
37
- The ` rustc-bin- link-arg ` instruction tells Cargo to pass the [ `-C
37
+ The ` rustc-link-arg-bins ` instruction tells Cargo to pass the [ `-C
38
38
link-arg=FLAG` option] [ link-arg ] to the compiler, but only when building a
39
39
binary target. Its usage is highly platform specific. It is useful
40
40
to set a linker script or other linker options.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ fn build_script_extra_link_arg_bin() {
11
11
"build.rs" ,
12
12
r#"
13
13
fn main() {
14
- println!("cargo:rustc-bin- link-arg=--this-is-a-bogus-flag");
14
+ println!("cargo:rustc-link-arg-bins =--this-is-a-bogus-flag");
15
15
}
16
16
"# ,
17
17
)
You can’t perform that action at this time.
0 commit comments