Introduce Input::check_all_triplets()

This commit is contained in:
Alexander Karatarakis 2016-09-30 16:55:34 -07:00
parent 4b0f3d87be
commit e3455e281b
2 changed files with 10 additions and 0 deletions

View File

@ -10,4 +10,6 @@ namespace vcpkg {namespace Input
std::vector<package_spec> check_and_get_package_specs(const std::vector<std::string>& package_specs_as_strings, const triplet& default_target_triplet, const char* example_text);
void check_triplet(const triplet& t, const vcpkg_paths& paths);
void check_all_triplets(std::vector<package_spec> triplets, const vcpkg_paths& paths);
}}

View File

@ -39,4 +39,12 @@ namespace vcpkg {namespace Input
exit(EXIT_FAILURE);
}
}
void check_all_triplets(std::vector<package_spec> triplets, const vcpkg_paths& paths)
{
for (const package_spec& spec : triplets)
{
check_triplet(spec.target_triplet, paths);
}
}
}}