aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/app/qbs-setup-toolchains/msvcprobe.cpp1
-rw-r--r--src/lib/corelib/tools/msvcinfo.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/app/qbs-setup-toolchains/msvcprobe.cpp b/src/app/qbs-setup-toolchains/msvcprobe.cpp
index bb1838f2b..993e12377 100644
--- a/src/app/qbs-setup-toolchains/msvcprobe.cpp
+++ b/src/app/qbs-setup-toolchains/msvcprobe.cpp
@@ -310,6 +310,7 @@ void createMsvcProfile(const QString &profileName, const QString &compilerFilePa
Settings *settings)
{
MSVC msvc(compilerFilePath);
+ msvc.init();
QList<Profile> dummy;
addMSVCPlatform(settings, dummy, profileName, &msvc);
qbsInfo() << Tr::tr("Profile '%1' created for '%2'.")
diff --git a/src/lib/corelib/tools/msvcinfo.h b/src/lib/corelib/tools/msvcinfo.h
index 61c70fc4a..aa0800aaa 100644
--- a/src/lib/corelib/tools/msvcinfo.h
+++ b/src/lib/corelib/tools/msvcinfo.h
@@ -75,6 +75,7 @@ public:
MSVC(const QString &clPath)
{
QDir parentDir = QFileInfo(clPath).dir();
+ binPath = parentDir.absolutePath();
QString parentDirName = parentDir.dirName().toLower();
if (parentDirName == QLatin1String("bin"))
parentDirName = QStringLiteral("x86");
@@ -82,7 +83,6 @@ public:
parentDir.cdUp();
architecture = parentDirName;
vcInstallPath = parentDir.path();
- binPath = vcInstallPath;
}
QBS_EXPORT void init();