forked from qt-creator/qt-creator
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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user