forked from qt-creator/qt-creator
Revert "QbsProjectManager: Write MSVC compiler version to profile"
This reverts commit 3c63b621d9.
This is no longer necessary because Qbs determines the version automatically.
Change-Id: I80161ddf366091eca8bb1e1b29657371e9a7b0fb
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -158,19 +158,6 @@ QVariantMap DefaultPropertyProvider::properties(const ProjectExplorer::Kit *k,
|
||||
return data;
|
||||
}
|
||||
|
||||
struct MSVCVersion
|
||||
{
|
||||
int major = 0;
|
||||
int minor = 0;
|
||||
};
|
||||
|
||||
static MSVCVersion msvcCompilerVersion(const ProjectExplorer::Abi &abi)
|
||||
{
|
||||
MSVCVersion v;
|
||||
v.major = abi.osFlavor() - ProjectExplorer::Abi::WindowsMsvc2005Flavor + 14;
|
||||
return v;
|
||||
}
|
||||
|
||||
QVariantMap DefaultPropertyProvider::autoGeneratedProperties(const ProjectExplorer::Kit *k,
|
||||
const QVariantMap &defaultData) const
|
||||
{
|
||||
@@ -275,9 +262,6 @@ QVariantMap DefaultPropertyProvider::autoGeneratedProperties(const ProjectExplor
|
||||
|
||||
if (toolchain.contains(QLatin1String("msvc"))) {
|
||||
data.insert(QLatin1String(CPP_COMPILERNAME), mainCompilerName);
|
||||
const MSVCVersion v = msvcCompilerVersion(targetAbi);
|
||||
data.insert(QLatin1String(CPP_COMPILERVERSIONMAJOR), v.major);
|
||||
data.insert(QLatin1String(CPP_COMPILERVERSIONMINOR), v.minor);
|
||||
} else {
|
||||
data.insert(QLatin1String(CPP_COMPILERNAME), cCompilerName);
|
||||
data.insert(QLatin1String(CPP_CXXCOMPILERNAME), cxxCompilerName);
|
||||
|
||||
Reference in New Issue
Block a user