From 85e3a8fc7a1a736740e0558a36c08d8ca95d3b9a Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 5 May 2020 20:30:04 +0300 Subject: [PATCH] BareMetal: Use forward slashes in Keil toolchain auto-detection algorithms Change-Id: I92a5bbb706554aa3ffe48657b16519e2e419acbb Reviewed-by: hjk --- src/plugins/baremetal/keiltoolchain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/baremetal/keiltoolchain.cpp b/src/plugins/baremetal/keiltoolchain.cpp index 09ffd87c089..d96a9b08768 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.