BareMetal: Fix auto-detection of C++ IAR toolchain for STM8 architecture

Change-Id: Id466b663990a7d43acc4b6d6ca30163358f2ad44
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Denis Shienkov
2019-07-26 17:25:52 +03:00
parent e6418fc3b6
commit 7c2eb93888

View File

@@ -71,7 +71,7 @@ static QString cppLanguageOption(const FilePath &compiler)
const QString baseName = compiler.toFileInfo().baseName();
if (baseName == "iccarm")
return QString("--c++");
if (baseName == "icc8051" || baseName == "iccavr")
if (baseName == "icc8051" || baseName == "iccavr" || baseName == "iccstm8")
return QString("--ec++");
return {};
}