mirror of https://github.com/microsoft/vcpkg.git
Rename to avoid variable hiding. Move temp into vector
This commit is contained in:
parent
2f6e549223
commit
adc8055a90
|
|
@ -270,10 +270,10 @@ namespace vcpkg::Build
|
|||
std::vector<PackageSpec> missing_specs;
|
||||
for (auto&& dep : filter_dependencies(config.scf.core_paragraph->depends, triplet))
|
||||
{
|
||||
auto spec = PackageSpec::from_name_and_triplet(dep, triplet).value_or_exit(VCPKG_LINE_INFO);
|
||||
if (!status_db.is_installed(spec))
|
||||
auto dep_spec = PackageSpec::from_name_and_triplet(dep, triplet).value_or_exit(VCPKG_LINE_INFO);
|
||||
if (!status_db.is_installed(dep_spec))
|
||||
{
|
||||
missing_specs.push_back(spec);
|
||||
missing_specs.push_back(std::move(dep_spec));
|
||||
}
|
||||
}
|
||||
// Fail the build if any dependencies were missing
|
||||
|
|
|
|||
Loading…
Reference in New Issue