mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 19:17:10 +01:00
[triplet] Remove obsolete check about dash in the name
Triplets haven't required that for a while now
This commit is contained in:
parent
93497f5eab
commit
6942c00a45
@ -41,9 +41,6 @@ namespace vcpkg
|
||||
Triplet Triplet::from_canonical_name(const std::string& triplet_as_string)
|
||||
{
|
||||
std::string s(Strings::ascii_to_lowercase(triplet_as_string));
|
||||
const auto it = std::find(s.cbegin(), s.cend(), '-');
|
||||
Checks::check_exit(VCPKG_LINE_INFO, it != s.cend(), "Invalid triplet: %s", triplet_as_string);
|
||||
|
||||
const auto p = g_triplet_instances.emplace(std::move(s));
|
||||
return &*p.first;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user