BareMetal: Remove extra slash in auto-detected Keil toolchain path

Change-Id: I2de655155c7d84c2b74536ef89931a3e122da4cb
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2020-05-05 14:41:40 +03:00
parent f486ff7dab
commit 84b7e693d4

View File

@@ -642,13 +642,13 @@ QList<ToolChain *> KeilToolChainFactory::autoDetect(const QList<ToolChain *> &al
// Fetch the toolchain executable path. // Fetch the toolchain executable path.
FilePath compilerPath; FilePath compilerPath;
if (productPath.endsWith("ARM")) if (productPath.endsWith("ARM"))
compilerPath = productPath.pathAppended("\\ARMCC\\bin\\armcc.exe"); compilerPath = productPath.pathAppended("ARMCC\\bin\\armcc.exe");
else if (productPath.endsWith("C51")) else if (productPath.endsWith("C51"))
compilerPath = productPath.pathAppended("\\BIN\\c51.exe"); compilerPath = productPath.pathAppended("BIN\\c51.exe");
else if (productPath.endsWith("C251")) else if (productPath.endsWith("C251"))
compilerPath = productPath.pathAppended("\\BIN\\c251.exe"); compilerPath = productPath.pathAppended("BIN\\c251.exe");
else if (productPath.endsWith("C166")) else if (productPath.endsWith("C166"))
compilerPath = productPath.pathAppended("\\BIN\\c166.exe"); compilerPath = productPath.pathAppended("BIN\\c166.exe");
if (compilerPath.exists()) { if (compilerPath.exists()) {
// Fetch the toolchain version. // Fetch the toolchain version.