Fix minimum windows version detection

Change-Id: Idba2e5ec81bae1572e6ed8f89055e8bf1ab41ba1
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
Yuchen Deng
2014-04-18 17:32:14 +08:00
committed by Joerg Bornemann
parent 65cd8ea4c2
commit b45f3ae43d

View File

@@ -150,6 +150,12 @@ void QbsManager::addQtProfileFromKit(const QString &profileName, const ProjectEx
return;
qbs::QtEnvironment qtEnv;
const QList<ProjectExplorer::Abi> abi = qt->qtAbis();
if (!abi.empty()) {
qtEnv.architecture = ProjectExplorer::Abi::toString(abi.first().architecture());
if (abi.first().wordWidth() == 64)
qtEnv.architecture.append(QLatin1String("_64"));
}
qtEnv.binaryPath = qt->binPath().toString();
if (qt->hasDebugBuild())
qtEnv.buildVariant << QLatin1String("debug");