Skip to content

Commit f608ed6

Browse files
committed
Rename pass_link_args to pass_cdylib_link_args
1 parent 064afa6 commit f608ed6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cargo/core/compiler/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fn rustc<'a, 'cfg>(
211211
// If we are a binary and the package also contains a library, then we
212212
// don't pass the `-l` flags.
213213
let pass_l_flag = unit.target.is_lib() || !unit.pkg.targets().iter().any(|t| t.is_lib());
214-
let pass_link_args = unit.target.is_cdylib();
214+
let pass_cdylib_link_args = unit.target.is_cdylib();
215215
let do_rename = unit.target.allows_underscores() && !unit.mode.is_any_test();
216216
let real_name = unit.target.name().to_string();
217217
let crate_name = unit.target.crate_name();
@@ -258,7 +258,7 @@ fn rustc<'a, 'cfg>(
258258
&build_state,
259259
&build_deps,
260260
pass_l_flag,
261-
pass_link_args,
261+
pass_cdylib_link_args,
262262
current_id,
263263
)?;
264264
add_plugin_deps(&mut rustc, &build_state, &build_deps, &root_output)?;
@@ -348,7 +348,7 @@ fn rustc<'a, 'cfg>(
348348
build_state: &BuildMap,
349349
build_scripts: &BuildScripts,
350350
pass_l_flag: bool,
351-
pass_link_args: bool,
351+
pass_cdylib_link_args: bool,
352352
current_id: PackageId,
353353
) -> CargoResult<()> {
354354
for key in build_scripts.to_link.iter() {
@@ -370,7 +370,7 @@ fn rustc<'a, 'cfg>(
370370
rustc.arg("-l").arg(name);
371371
}
372372
}
373-
if pass_link_args {
373+
if pass_cdylib_link_args {
374374
for arg in output.linker_args.iter() {
375375
let link_arg = format!("link-arg={}", arg);
376376
rustc.arg("-C").arg(link_arg);

0 commit comments

Comments
 (0)