forked from qt-creator/qt-creator
QmakeKitInformation: Leave boot2Qt kits alone
HACK! The magic in QmakeKitInformation::setup() should be removed altogether, but that is something I dare not do in a patch release. HACK! Change-Id: If3f0ec9976171977c253cee531203ac3ab41c6a7 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -72,10 +72,14 @@ void QmakeKitInformation::setup(Kit *k)
|
||||
if (!version)
|
||||
return;
|
||||
|
||||
if (version->type() == "Boot2Qt.QtVersionType") // HACK: Ignore boot2Qt kits!
|
||||
return;
|
||||
|
||||
FileName spec = QmakeKitInformation::mkspec(k);
|
||||
if (spec.isEmpty())
|
||||
spec = version->mkspec();
|
||||
|
||||
|
||||
ToolChain *tc = ToolChainKitInformation::toolChain(k, ToolChain::Language::Cxx);
|
||||
|
||||
if (!tc || (!tc->suggestedMkspecList().empty() && !tc->suggestedMkspecList().contains(spec))) {
|
||||
|
Reference in New Issue
Block a user