message: Make sure to lift dylibs
diff: @@ -332,7 +332,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 unit.target.is_bin() || self.roots.contains(unit) {
  + if unit.target.is_bin() || self.roots.contains(unit) || unit.target.is_dylib() {
  Some((
  out_dir.parent().unwrap().to_owned(),
  if unit.mode.is_any_test() {
  