Skip to content

Commit

Permalink
Restrict the link-arg key to rustc-cdylib-link-arg for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Mar 8, 2019
1 parent d426f12 commit 9741016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/build_context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ impl TargetConfig {
.library_paths
.extend(list.iter().map(|v| PathBuf::from(&v.0)));
}
"rustc-link-arg" => {
"rustc-cdylib-link-arg" => {
let args = value.list(k)?;
output
.linker_args
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/custom_build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ impl BuildOutput {
}
"rustc-link-lib" => library_links.push(value.to_string()),
"rustc-link-search" => library_paths.push(PathBuf::from(value)),
"rustc-link-arg" => linker_args.push(value.to_string()),
"rustc-cdylib-link-arg" => linker_args.push(value.to_string()),
"rustc-cfg" => cfgs.push(value.to_string()),
"rustc-env" => env.push(BuildOutput::parse_rustc_env(&value, &whence)?),
"warning" => warnings.push(value.to_string()),
Expand Down

0 comments on commit 9741016

Please sign in to comment.