ProjectExplorer: Interpret 'none' compiler part as BareMetalOS

Usually, the GCC compilers with a names like "arm-none-eabi-gcc"
are used for a bare-metal devices.

Change-Id: I30acd554b44ae625383ec615454d258361e78074
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Denis Shienkov
2019-07-11 16:39:43 +03:00
parent e358c169a2
commit 6e1595c1b3

View File

@@ -458,7 +458,7 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
int unknownCount = 0;
for (const QStringRef &p : parts) {
if (p == "unknown" || p == "pc" || p == "none"
if (p == "unknown" || p == "pc"
|| p == "gnu" || p == "uclibc"
|| p == "86_64" || p == "redhat"
|| p == "w64") {
@@ -543,6 +543,10 @@ Abi Abi::abiFromTargetTriplet(const QString &triple)
os = QnxOS;
flavor = GenericFlavor;
format = ElfFormat;
} else if (p == "none") {
os = BareMetalOS;
flavor = GenericFlavor;
format = ElfFormat;
} else {
++unknownCount;
}