From 0842145f7cd57714280f4008bac4bed7278b19bc Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Thu, 21 Feb 2013 16:45:02 +0100 Subject: [PATCH] MsvcToolChain: Make Windows SDK toolchains isValid() again. Broke with 0d6e20c6e981586d4c37be7c244996921cf1ec27. 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: Tobias Hunger --- src/plugins/projectexplorer/msvctoolchain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/projectexplorer/msvctoolchain.cpp b/src/plugins/projectexplorer/msvctoolchain.cpp index 47808a69a1..0060afc9c4 100644 --- a/src/plugins/projectexplorer/msvctoolchain.cpp +++ b/src/plugins/projectexplorer/msvctoolchain.cpp @@ -463,6 +463,8 @@ bool MsvcToolChainFactory::checkForVisualStudioInstallation(const QString &vsNam 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")) return basePath + QLatin1String("/bin/vcvars32.bat"); if (toolchainName == QLatin1String("x86_amd64")) -- GitLab