forked from qt-creator/qt-creator
Creating profiles: Set toolchain before the mkspec
The mkspec setting function checks whether the value is the same as the default, but the default depends on the toolchain. Change-Id: I2ff55efbf365617b117301224e23d616dc7db25e Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -203,8 +203,8 @@ ProjectExplorer::Profile *TargetSetupPage::createTemporaryProfile(QtSupport::Bas
|
|||||||
ProjectExplorer::Profile *p = new ProjectExplorer::Profile;
|
ProjectExplorer::Profile *p = new ProjectExplorer::Profile;
|
||||||
p->setDisplayName(version->displayName());
|
p->setDisplayName(version->displayName());
|
||||||
QtSupport::QtProfileInformation::setQtVersion(p, version);
|
QtSupport::QtProfileInformation::setQtVersion(p, version);
|
||||||
QmakeProfileInformation::setMkspec(p, parsedSpec);
|
|
||||||
ProjectExplorer::ToolChainProfileInformation::setToolChain(p, version->preferredToolChain(parsedSpec));
|
ProjectExplorer::ToolChainProfileInformation::setToolChain(p, version->preferredToolChain(parsedSpec));
|
||||||
|
QmakeProfileInformation::setMkspec(p, parsedSpec);
|
||||||
|
|
||||||
p->setValue(PROFILE_IS_TEMPORARY, true);
|
p->setValue(PROFILE_IS_TEMPORARY, true);
|
||||||
p->setValue(TEMPORARY_OF_PROJECTS, QStringList() << m_proFilePath);
|
p->setValue(TEMPORARY_OF_PROJECTS, QStringList() << m_proFilePath);
|
||||||
|
|||||||
Reference in New Issue
Block a user