Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/vcpkg/triplet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,17 @@ namespace vcpkg

static Triplet system_triplet()
{
#if defined(_WIN32)
#if defined(__MINGW32__)
auto host_proc = System::get_host_processor();
switch (host_proc)
{
case System::CPUArchitecture::X86: return Triplet::from_canonical_name("x86-mingw-dynamic");
case System::CPUArchitecture::X64: return Triplet::from_canonical_name("x64-mingw-dynamic");
case System::CPUArchitecture::ARM: return Triplet::from_canonical_name("arm-mingw-dynamic");
case System::CPUArchitecture::ARM64: return Triplet::from_canonical_name("arm64-mingw-dynamic");
default: return Triplet::from_canonical_name("x86-mingw-dynamic");
}
#elif defined(_WIN32)
auto host_proc = System::get_host_processor();
switch (host_proc)
{
Expand Down Expand Up @@ -115,7 +125,7 @@ namespace vcpkg
{
return Triplet::from_canonical_name(std::string(*args.triplet));
}
#if defined(_WIN32)
#if defined(_WIN32) && !defined(__MINGW32__)
return Triplet::from_canonical_name("x86-windows");
#else
return system_triplet();
Expand Down