Skip to content

Commit 2dd0b0d

Browse files
committed
Make sure to lift dylibs
1 parent 6910cdf commit 2dd0b0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ impl<'a, 'cfg: 'a> CompilationFiles<'a, 'cfg> {
332332
// we don't want to link it up.
333333
if out_dir.ends_with("deps") {
334334
// Don't lift up library dependencies.
335-
if unit.target.is_bin() || self.roots.contains(unit) {
335+
if unit.target.is_bin() || self.roots.contains(unit) || unit.target.is_dylib() {
336336
Some((
337337
out_dir.parent().unwrap().to_owned(),
338338
if unit.mode.is_any_test() {

0 commit comments

Comments
 (0)