Skip to content

Commit

Permalink
Make sure to lift dylibs
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Apr 21, 2020
1 parent 6910cdf commit 2dd0b0d
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 @@ -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() {
Expand Down

0 comments on commit 2dd0b0d

Please sign in to comment.