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