McuSupport: Fix case of path variable in Kit environment

Linux calls it "PATH" and is case sensitive.

Change-Id: Ic53c0bd4a9135eef21dc5f771022ab5277fe35a8
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2019-11-28 18:17:37 +01:00
parent 8ff52e37a7
commit 5351652e88

View File

@@ -567,7 +567,8 @@ static void setKitEnvironment(ProjectExplorer::Kit *k, const McuTarget* mcuTarge
if (Utils::HostOsInfo::isWindowsHost())
pathAdditions.append(QDir::toNativeSeparators(Core::ICore::libexecPath())); // for jom
pathAdditions.append(QDir::toNativeSeparators(Core::ICore::libexecPath() + "/clang/bin"));
changes.append({"Path", pathAdditions.join(Utils::HostOsInfo::pathListSeparator())});
const QString path = Utils::HostOsInfo().isWindowsHost() ? "Path" : "PATH";
changes.append({path, pathAdditions.join(Utils::HostOsInfo::pathListSeparator())});
EnvironmentKitAspect::setEnvironmentChanges(k, changes);
}