Skip to content

Commit

Permalink
[vcpkg] Fix feature interdependency during install
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Feb 26, 2018
1 parent 65e95f6 commit c267f32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions toolsrc/src/vcpkg/build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ namespace vcpkg::Build
std::vector<FeatureSpec> required_fspecs = compute_required_feature_specs(config, status_db);

// Find all features that aren't installed. This destroys required_fspecs.
Util::unstable_keep_if(required_fspecs,
[&](FeatureSpec const& fspec) { return !status_db.is_installed(fspec); });
Util::unstable_keep_if(required_fspecs, [&](FeatureSpec const& fspec) {
return !status_db.is_installed(fspec) && fspec.name() != spec.name();
});

if (!required_fspecs.empty())
{
Expand Down

0 comments on commit c267f32

Please sign in to comment.