forked from qt-creator/qt-creator
ToolChainKitInformation: Remove setToolChain(kit, language, toolchain)
Replace that with clearToolChain(kit, languguage). The only use-case for that method was to unset toolchains in a kit. Change-Id: I8cffe39393281f424fa8e044e6b90c5cea17ac90 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -186,8 +186,15 @@ static void setupKit(Kit *kit, Core::Id pDeviceType, const ToolChainPair& toolCh
|
||||
const QVariant &debuggerId, const Utils::FileName &sdkPath, BaseQtVersion *qtVersion)
|
||||
{
|
||||
DeviceTypeKitInformation::setDeviceTypeId(kit, pDeviceType);
|
||||
ToolChainKitInformation::setToolChain(kit, ToolChain::Language::C, toolChains.first);
|
||||
ToolChainKitInformation::setToolChain(kit, ToolChain::Language::Cxx, toolChains.second);
|
||||
if (toolChains.first)
|
||||
ToolChainKitInformation::setToolChain(kit, toolChains.first);
|
||||
else
|
||||
ToolChainKitInformation::clearToolChain(kit, ToolChain::Language::C);
|
||||
if (toolChains.second)
|
||||
ToolChainKitInformation::setToolChain(kit, toolChains.second);
|
||||
else
|
||||
ToolChainKitInformation::clearToolChain(kit, ToolChain::Language::Cxx);
|
||||
|
||||
QtKitInformation::setQtVersion(kit, qtVersion);
|
||||
// only replace debugger with the default one if we find an unusable one here
|
||||
// (since the user could have changed it)
|
||||
|
||||
Reference in New Issue
Block a user