Disable ANGLE builds for MSVC <= 2008.

Task-number: QTBUG-43475
Change-Id: If0f68ed6823564fd67219812334256936031f35f
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Friedemann Kleint 2015-01-05 14:31:47 +01:00
parent 6796f2337e
commit d74d0a3b30

View File

@ -2101,6 +2101,11 @@ bool Configure::checkAngleAvailability(QString *errorMessage /* = 0 */) const
// it is also present in MinGW.
const QString directXSdk = Environment::detectDirectXSdk();
const Compiler compiler = Environment::compilerFromQMakeSpec(dictionary[QStringLiteral("QMAKESPEC")]);
if (compiler >= CC_NET2003 && compiler <= CC_NET2008) {
if (errorMessage)
*errorMessage = QStringLiteral("ANGLE is no longer supported for this compiler.");
return false;
}
if (compiler < CC_NET2012 && directXSdk.isEmpty()) {
if (errorMessage)
*errorMessage = QStringLiteral("There is no Direct X SDK installed or the environment variable \"DXSDK_DIR\" is not set.");