Skip to content

Commit 9741016

Browse files
committed
Restrict the link-arg key to rustc-cdylib-link-arg for now
1 parent d426f12 commit 9741016

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/core/compiler/build_context/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ impl TargetConfig {
259259
.library_paths
260260
.extend(list.iter().map(|v| PathBuf::from(&v.0)));
261261
}
262-
"rustc-link-arg" => {
262+
"rustc-cdylib-link-arg" => {
263263
let args = value.list(k)?;
264264
output
265265
.linker_args

src/cargo/core/compiler/custom_build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ impl BuildOutput {
487487
}
488488
"rustc-link-lib" => library_links.push(value.to_string()),
489489
"rustc-link-search" => library_paths.push(PathBuf::from(value)),
490-
"rustc-link-arg" => linker_args.push(value.to_string()),
490+
"rustc-cdylib-link-arg" => linker_args.push(value.to_string()),
491491
"rustc-cfg" => cfgs.push(value.to_string()),
492492
"rustc-env" => env.push(BuildOutput::parse_rustc_env(&value, &whence)?),
493493
"warning" => warnings.push(value.to_string()),

0 commit comments

Comments
 (0)