ProjectExplorer: Fix gccInstallDir detection on devices

Change-Id: I5a7085a03304c1e90c7e81686578fa4d98857670
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2021-04-29 13:17:51 +02:00
parent 4564b2c36c
commit 31f6b6fbe3

View File

@@ -253,7 +253,7 @@ static Utils::FilePath gccInstallDir(const FilePath &path, const QStringList &en
const QString line = QTextStream(&output).readLine();
if (!line.startsWith(prefix))
return {};
return Utils::FilePath::fromString(QDir::cleanPath(line.mid(prefix.size())));
return FilePath::fromString(QDir::cleanPath(line.mid(prefix.size()))).onDevice(path);
}
// --------------------------------------------------------------------------