forked from qt-creator/qt-creator
McuSupport: Do not add clang to PATH when creating a new kit (1.7+)
Fixes: UL-3591 Change-Id: I7ec618aeb28bb8e79733267056d5c4c0ff7ba382 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
committed by
christiaan.janssen
parent
460f1d3ecd
commit
70670cad23
@@ -654,10 +654,13 @@ static void setKitEnvironment(Kit *k, const McuTarget *mcuTarget,
|
||||
processPackage(package);
|
||||
processPackage(qtForMCUsSdkPackage);
|
||||
|
||||
const QString path = QLatin1String(HostOsInfo().isWindowsHost() ? "Path" : "PATH");
|
||||
pathAdditions.append("${" + path + "}");
|
||||
pathAdditions.append(QDir::toNativeSeparators(Core::ICore::libexecPath() + "/clang/bin"));
|
||||
changes.append({path, pathAdditions.join(HostOsInfo::pathListSeparator())});
|
||||
// Clang not needed in version 1.7+
|
||||
if (mcuTarget->qulVersion() < QVersionNumber{1,7}) {
|
||||
const QString path = QLatin1String(HostOsInfo().isWindowsHost() ? "Path" : "PATH");
|
||||
pathAdditions.append("${" + path + "}");
|
||||
pathAdditions.append(QDir::toNativeSeparators(Core::ICore::libexecPath() + "/clang/bin"));
|
||||
changes.append({path, pathAdditions.join(HostOsInfo::pathListSeparator())});
|
||||
}
|
||||
|
||||
if (kitNeedsQtVersion())
|
||||
changes.append({QLatin1String("LD_LIBRARY_PATH"), "%{Qt:QT_INSTALL_LIBS}"});
|
||||
|
Reference in New Issue
Block a user