mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 04:28:01 +08:00
Introduce Input::check_all_triplets()
This commit is contained in:
parent
4b0f3d87be
commit
e3455e281b
@ -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);
|
||||
}}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user