mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Fix compilation error.
This commit is contained in:
parent
92db0bd16a
commit
13b262491d
@ -214,7 +214,7 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc<dyn Executor>) -> Car
|
||||
// If we are a binary and the package also contains a library, then we
|
||||
// don't pass the `-l` flags.
|
||||
let pass_l_flag = unit.target.is_lib() || !unit.pkg.targets().iter().any(|t| t.is_lib());
|
||||
let link_type = unit.target.into();
|
||||
let link_type = (&unit.target).into();
|
||||
let extra_link_arg = cx.bcx.config.cli_unstable().extra_link_arg;
|
||||
|
||||
let dep_info_name = match cx.files().metadata(unit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user