forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.12'
Conflicts: src/plugins/qmldesigner/components/curveeditor/detail/graphicsview.cpp Change-Id: I2a0ccb84560174c5170d5baaff526c0e095f0ba0
This commit is contained in:
@@ -67,14 +67,14 @@ static QString extractToolchainPrefix(QString *compilerName)
|
||||
QString prefix;
|
||||
const QStringList candidates = {QLatin1String("g++"), QLatin1String("clang++"),
|
||||
QLatin1String("gcc"), QLatin1String("clang")};
|
||||
foreach (const QString &candidate, candidates) {
|
||||
const QString suffix = Utils::HostOsInfo::withExecutableSuffix(QLatin1Char('-')
|
||||
+ candidate);
|
||||
if (compilerName->endsWith(suffix)) {
|
||||
const int idx = compilerName->lastIndexOf(QLatin1Char('-')) + 1;
|
||||
prefix = compilerName->left(idx);
|
||||
compilerName->remove(0, idx);
|
||||
}
|
||||
for (const QString &candidate : candidates) {
|
||||
const QString suffix = QLatin1Char('-') + candidate;
|
||||
const int suffixIndex = compilerName->lastIndexOf(suffix);
|
||||
if (suffixIndex == -1)
|
||||
continue;
|
||||
prefix = compilerName->left(suffixIndex + 1);
|
||||
compilerName->remove(0, suffixIndex + 1);
|
||||
break;
|
||||
}
|
||||
return prefix;
|
||||
}
|
||||
|
||||
@@ -915,6 +915,7 @@ static RawProjectParts generateProjectParts(
|
||||
rpp.setBuildTargetType(prd.value("is-runnable").toBool()
|
||||
? BuildTargetType::Executable
|
||||
: BuildTargetType::Library);
|
||||
rpp.setSelectedForBuilding(grp.value("is-enabled").toBool());
|
||||
|
||||
QHash<QString, QJsonObject> filePathToSourceArtifact;
|
||||
bool hasCFiles = false;
|
||||
|
||||
Reference in New Issue
Block a user