BareMetal: Adapt to change in FilePath

Change-Id: I4766ccd8fc7121af1045d2fc7d2e730da0a9d44b
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2023-01-18 08:09:16 +01:00
parent 17b20e0622
commit b9aac89961
2 changed files with 3 additions and 3 deletions

View File

@@ -462,7 +462,7 @@ Toolchains IarToolChainFactory::autoDetect(const ToolchainDetector &detector) co
if (!compilerPath.isEmpty()) {
// Build full compiler path.
compilerPath += entry.subExePath;
const FilePath fn = FilePath::fromString(compilerPath);
const FilePath fn = FilePath::fromUserInput(compilerPath);
if (compilerExists(fn)) {
// Note: threeLevelKey is a guessed toolchain version.
candidates.push_back({fn, threeLevelKey});

View File

@@ -596,8 +596,8 @@ Toolchains KeilToolChainFactory::autoDetect(const ToolchainDetector &detector) c
if (!productKey.startsWith("App"))
continue;
registry.beginGroup(productKey);
const FilePath productPath(FilePath::fromString(registry.value("ProductDir")
.toString()));
const FilePath productPath(FilePath::fromUserInput(registry.value("ProductDir")
.toString()));
// Fetch the toolchain executable path.
FilePath compilerPath;
if (productPath.endsWith("ARM"))