McuSupport: Use platform specific case for referencing "Path" value

... in the build environment of the generated Kit.

Change-Id: Ia0b8f8dba03a9a91c8435a3b2a4a1410f3459da8
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2020-08-30 23:50:18 +02:00
parent 4e1434d51a
commit bbbb7d421b

View File

@@ -588,9 +588,9 @@ static void setKitEnvironment(ProjectExplorer::Kit *k, const McuTarget* mcuTarge
processPackage(package);
processPackage(qtForMCUsSdkPackage);
pathAdditions.append("${Path}");
pathAdditions.append(QDir::toNativeSeparators(Core::ICore::libexecPath() + "/clang/bin"));
const QString path = QLatin1String(Utils::HostOsInfo().isWindowsHost() ? "Path" : "PATH");
pathAdditions.append("${" + path + "}");
pathAdditions.append(QDir::toNativeSeparators(Core::ICore::libexecPath() + "/clang/bin"));
changes.append({path, pathAdditions.join(Utils::HostOsInfo::pathListSeparator())});
if (kitNeedsQtVersion())