forked from qt-creator/qt-creator
BareMetal: Use forward slashes in Keil toolchain auto-detection algorithms
Change-Id: I92a5bbb706554aa3ffe48657b16519e2e419acbb Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user