]> git.proxmox.com Git - cargo.git/commitdiff
Restrict the link-arg key to rustc-cdylib-link-arg for now
authorLuca Barbato <lu_zero@gentoo.org>
Fri, 8 Mar 2019 19:36:36 +0000 (19:36 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 8 Mar 2019 19:36:36 +0000 (19:36 +0000)
src/cargo/core/compiler/build_context/mod.rs
src/cargo/core/compiler/custom_build.rs

index 9d9f611f48a9fd9dc5d23577767bb6cfdd8a468b..cc3096c4eb5603387254916e2267788b8a2ba619 100644 (file)
@@ -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
index bf587b18b62bb57560c4d45296651a7fe7f67b55..66074f6997a7de27bb969db1fb036a5ec1716b13 100644 (file)
@@ -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()),