]> git.proxmox.com Git - cargo.git/commitdiff
Update due to #5503.
authorEric Huss <eric@huss.org>
Thu, 10 May 2018 16:33:05 +0000 (09:33 -0700)
committerEric Huss <eric@huss.org>
Thu, 10 May 2018 16:33:05 +0000 (09:33 -0700)
src/cargo/core/compiler/context/compilation_files.rs

index 29afdcbf7bcfc44c99fb290af9f8a9bbb9a4fff1..a2e91ef7acdc10be6bdcf53591c92e4cf2a090dd 100644 (file)
@@ -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() {