aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-18 14:10:10 +0200
committerChristian Kandeler <christian.kandeler@theqtcompany.com>2015-06-18 12:10:53 +0000
commit0832785797f5db4e2f23833e08be0c023b6c9cc2 (patch)
tree5cc2f1cff78c41a3d9eb81e9968ed746467ab094
parenta5b77c574ae5876cdb348bded7a3e091fe2f85bf (diff)
Fix compilation with MSVC 2010.v1.4.1
Still required for Qt Creator 3.4. Change-Id: I016c5969eef526fd61c19e18ea03bb8442811e8f Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
-rw-r--r--src/app/qbs-setup-qt/setupqt.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/app/qbs-setup-qt/setupqt.cpp b/src/app/qbs-setup-qt/setupqt.cpp
index eff87b209..aa668bca0 100644
--- a/src/app/qbs-setup-qt/setupqt.cpp
+++ b/src/app/qbs-setup-qt/setupqt.cpp
@@ -400,11 +400,11 @@ static int msvcCompilerMajorVersionForYear(int year)
}
}
-enum class Match { Full, Partial, None };
+enum Match { MatchFull, MatchPartial, MatchNone };
static Match compatibility(const QtEnvironment &env, const Profile &toolchainProfile)
{
- Match match = Match::Full;
+ Match match = MatchFull;
const QSet<QString> toolchainNames = toolchainProfile.value(QLatin1String("qbs.toolchain"))
.toStringList().toSet();
@@ -413,22 +413,22 @@ static Match compatibility(const QtEnvironment &env, const Profile &toolchainPro
QSet<QString> intersection = toolchainNames;
intersection.intersect(mkspecToolchainNames);
if (!intersection.isEmpty())
- match = Match::Partial;
+ match = MatchPartial;
else
- return Match::None;
+ return MatchNone;
}
const QSet<QString> targetOsNames = toolchainProfile.value(QLatin1String("qbs.targetOS"))
.toStringList().toSet();
if (areProfilePropertiesIncompatible(qbsTargetOsFromQtMkspec(env.mkspecName).toSet(),
targetOsNames))
- return Match::None;
+ return MatchNone;
const QString toolchainArchitecture = toolchainProfile.value(QLatin1String("qbs.architecture"))
.toString();
if (areProfilePropertiesIncompatible(canonicalArchitecture(env.architecture),
canonicalArchitecture(toolchainArchitecture)))
- return Match::None;
+ return MatchNone;
const QString msvcPrefix(QLatin1String("win32-msvc"));
if (env.mkspecName.startsWith(msvcPrefix)) {
@@ -439,7 +439,7 @@ static Match compatibility(const QtEnvironment &env, const Profile &toolchainPro
// because it's especially important for this toolchain
if (compilerVersionMajor == 0 || compilerVersionMajor !=
toolchainProfile.value(QLatin1String("cpp.compilerVersionMajor"))) {
- return Match::None;
+ return MatchNone;
}
}
@@ -487,10 +487,10 @@ void SetupQt::saveToQbsSettings(const QString &qtVersionName, const QtEnvironmen
}
if (hasCppKey && !hasQtKey)
switch (compatibility(qtEnvironment, Profile(profileName, settings))) {
- case Match::Full:
+ case MatchFull:
fullMatches << profileName;
break;
- case Match::Partial:
+ case MatchPartial:
partialMatches << profileName;
break;
default: