forked from qt-creator/qt-creator
ProjectExplorer: Do not ignore user-supplied mkspec
If the user explicitly sets the mkspec for a kit, we should remember that, even if it happens to be the (current) default mkspec of the kit. Fixes: QTCREATORBUG-16205 Change-Id: I9ee047bdaecce1aae7d0a8e4dfc2a0a25b6be744 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -302,7 +302,7 @@ Kit *QmakeProjectImporter::createTemporaryKit(const QtProjectImporter::QtVersion
|
||||
for (ToolChain * const tc : preferredToolChains(data.qt, parsedSpec, archConfig))
|
||||
ToolChainKitAspect::setToolChain(k, tc);
|
||||
if (parsedSpec != data.qt->mkspec())
|
||||
QmakeKitAspect::setMkspec(k, parsedSpec);
|
||||
QmakeKitAspect::setMkspec(k, parsedSpec, QmakeKitAspect::MkspecSource::Code);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user