forked from qt-creator/qt-creator
ProjectExplorer: Support ABI triplet of MSYS2 (x86_64-pc-msys)
Change-Id: If041b729d621a3119d84d2978b6d9adce2e4034b Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
1f445f8fd6
commit
53e1c84f50
@@ -512,7 +512,8 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
|
||||
if (flavor == Abi::UnknownFlavor)
|
||||
flavor = Abi::FreeBsdFlavor;
|
||||
format = Abi::ElfFormat;
|
||||
} else if (p == QLatin1String("mingw32") || p == QLatin1String("win32") || p == QLatin1String("mingw32msvc")) {
|
||||
} else if (p == QLatin1String("mingw32") || p == QLatin1String("win32")
|
||||
|| p == QLatin1String("mingw32msvc") || p == QLatin1String("msys")) {
|
||||
arch = Abi::X86Architecture;
|
||||
os = Abi::WindowsOS;
|
||||
flavor = Abi::WindowsMSysFlavor;
|
||||
@@ -1077,6 +1078,10 @@ void ProjectExplorer::ProjectExplorerPlugin::testAbiFromTargetTriplet_data()
|
||||
<< int(Abi::WindowsOS) << int(Abi::WindowsMSysFlavor)
|
||||
<< int(Abi::PEFormat) << 0;
|
||||
|
||||
QTest::newRow("x86_64-pc-msys") << int(Abi::X86Architecture)
|
||||
<< int(Abi::WindowsOS) << int(Abi::WindowsMSysFlavor)
|
||||
<< int(Abi::PEFormat) << 64;
|
||||
|
||||
QTest::newRow("mingw32") << int(Abi::X86Architecture)
|
||||
<< int(Abi::WindowsOS) << int(Abi::WindowsMSysFlavor)
|
||||
<< int(Abi::PEFormat) << 0;
|
||||
|
Reference in New Issue
Block a user