forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user