diff --git a/src/plugins/baremetal/keiltoolchain.cpp b/src/plugins/baremetal/keiltoolchain.cpp index 3eca05dcc65..09ffd87c089 100644 --- a/src/plugins/baremetal/keiltoolchain.cpp +++ b/src/plugins/baremetal/keiltoolchain.cpp @@ -642,13 +642,13 @@ QList KeilToolChainFactory::autoDetect(const QList &al // Fetch the toolchain executable path. FilePath compilerPath; if (productPath.endsWith("ARM")) - compilerPath = productPath.pathAppended("\\ARMCC\\bin\\armcc.exe"); + compilerPath = productPath.pathAppended("ARMCC\\bin\\armcc.exe"); else if (productPath.endsWith("C51")) - compilerPath = productPath.pathAppended("\\BIN\\c51.exe"); + compilerPath = productPath.pathAppended("BIN\\c51.exe"); else if (productPath.endsWith("C251")) - compilerPath = productPath.pathAppended("\\BIN\\c251.exe"); + compilerPath = productPath.pathAppended("BIN\\c251.exe"); else if (productPath.endsWith("C166")) - compilerPath = productPath.pathAppended("\\BIN\\c166.exe"); + compilerPath = productPath.pathAppended("BIN\\c166.exe"); if (compilerPath.exists()) { // Fetch the toolchain version.