forked from qt-creator/qt-creator
Abi: add OpenBSD
Change-Id: I77ec7e06c38a54e753b9b39aebc7d2caaa3c8fc0 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -513,6 +513,11 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
|
||||
if (flavor == Abi::UnknownFlavor)
|
||||
flavor = Abi::FreeBsdFlavor;
|
||||
format = Abi::ElfFormat;
|
||||
} else if (p.startsWith(QLatin1String("openbsd"))) {
|
||||
os = Abi::BsdOS;
|
||||
if (flavor == Abi::UnknownFlavor)
|
||||
flavor = Abi::OpenBsdFlavor;
|
||||
format = Abi::ElfFormat;
|
||||
} else if (p == QLatin1String("mingw32") || p == QLatin1String("win32")
|
||||
|| p == QLatin1String("mingw32msvc") || p == QLatin1String("msys")
|
||||
|| p == QLatin1String("cygwin")) {
|
||||
@@ -1127,6 +1132,10 @@ void ProjectExplorer::ProjectExplorerPlugin::testAbiFromTargetTriplet_data()
|
||||
QTest::newRow("arm-wrs-vxworks") << int(Abi::ArmArchitecture)
|
||||
<< int(Abi::VxWorks) << int(Abi::VxWorksFlavor)
|
||||
<< int(Abi::ElfFormat) << 32;
|
||||
|
||||
QTest::newRow("x86_64-unknown-openbsd") << int(Abi::X86Architecture)
|
||||
<< int(Abi::BsdOS) << int(Abi::OpenBsdFlavor)
|
||||
<< int(Abi::ElfFormat) << 64;
|
||||
}
|
||||
|
||||
void ProjectExplorer::ProjectExplorerPlugin::testAbiFromTargetTriplet()
|
||||
|
||||
Reference in New Issue
Block a user