Skip to content

Commit

Permalink
Do not download dependencies from other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
wimh committed Sep 26, 2016
1 parent 8fb5302 commit 0a4fbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_rustc/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
let deps = self.resolve.deps(id);
let mut ret = try!(deps.filter(|dep| {
unit.pkg.dependencies().iter().filter(|d| {
d.name() == dep.name()
d.name() == dep.name() && d.version_req().matches(dep.version())
}).any(|d| {
// If this target is a build command, then we only want build
// dependencies, otherwise we want everything *other than* build
Expand Down

0 comments on commit 0a4fbbf

Please sign in to comment.