Skip to content

Commit 251502b

Browse files
committed
Update due to rust-lang#5503.
1 parent f4dc629 commit 251502b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/core/compiler/context/compilation_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ impl<'a, 'cfg: 'a> CompilationFiles<'a, 'cfg> {
210210
// we don't want to link it up.
211211
if out_dir.ends_with("deps") {
212212
// Don't lift up library dependencies
213-
if self.roots.contains(unit) {
213+
if unit.target.is_bin() || self.roots.contains(unit) {
214214
Some((
215215
out_dir.parent().unwrap().to_owned(),
216216
if unit.mode.is_any_test() {

0 commit comments

Comments
 (0)