Commit 0842145f authored by Daniel Teske's avatar Daniel Teske

MsvcToolChain: Make Windows SDK toolchains isValid() again.

Broke with 0d6e20c6. We need
to figure out the correct .bat or .cmd file for isValid().
So implement that for Windows SDK toolchains.

Change-Id: I33ba8c757be059e19d5d0462bd69f23e85b57970
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent edb13dd3
...@@ -463,6 +463,8 @@ bool MsvcToolChainFactory::checkForVisualStudioInstallation(const QString &vsNam ...@@ -463,6 +463,8 @@ bool MsvcToolChainFactory::checkForVisualStudioInstallation(const QString &vsNam
QString MsvcToolChainFactory::vcVarsBatFor(const QString &basePath, const QString &toolchainName) QString MsvcToolChainFactory::vcVarsBatFor(const QString &basePath, const QString &toolchainName)
{ {
if (toolchainName.startsWith(QLatin1Char('/'))) // windows sdk case, all use SetEnv.cmd
return basePath + QLatin1String("/SetEnv.cmd");
if (toolchainName == QLatin1String("x86")) if (toolchainName == QLatin1String("x86"))
return basePath + QLatin1String("/bin/vcvars32.bat"); return basePath + QLatin1String("/bin/vcvars32.bat");
if (toolchainName == QLatin1String("x86_amd64")) if (toolchainName == QLatin1String("x86_amd64"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment