Skip to content

Commit

Permalink
Update due to rust-lang#5503.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed May 10, 2018
1 parent f4dc629 commit 251502b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/context/compilation_files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ impl<'a, 'cfg: 'a> CompilationFiles<'a, 'cfg> {
// we don't want to link it up.
if out_dir.ends_with("deps") {
// Don't lift up library dependencies
if self.roots.contains(unit) {
if unit.target.is_bin() || self.roots.contains(unit) {
Some((
out_dir.parent().unwrap().to_owned(),
if unit.mode.is_any_test() {
Expand Down

0 comments on commit 251502b

Please sign in to comment.