Commit cc6dd543 authored by Kai Koehne's avatar Kai Koehne Committed by Tobias Hunger
Browse files

sdktool: Fix addKit complaining about unknown toolchains

Fixes a regression in 07f7dd9c

that caused the Qt SDK installer to complain e.g. with

  Toolchain x86-linux-generic-elf-86bit does not exist.

Qt Creator has code to automatically detect toolchains, so
it's not necessary for every toolchain to be explicitly registered.

Task-number: QTBUG-37875
Change-Id: I1e8909da2ff919a8cccdf86bb3a2f7a5cc79a257
Reviewed-by: default avatarTobias Hunger <>
parent b9813b5c
...@@ -498,11 +498,6 @@ QVariantMap AddKitOperation::addKit(const QVariantMap &map, const QVariantMap &t ...@@ -498,11 +498,6 @@ QVariantMap AddKitOperation::addKit(const QVariantMap &map, const QVariantMap &t
return QVariantMap(); return QVariantMap();
} }
if (!tc.isEmpty() && !AddToolChainOperation::exists(tcMap, tc)) {
std::cerr << "Error: Toolchain " << qPrintable(tc) << " does not exist." << std::endl;
return QVariantMap();
QString qtId = qt; QString qtId = qt;
if (!qtId.isEmpty() && !qtId.startsWith(QLatin1String("SDK."))) if (!qtId.isEmpty() && !qtId.startsWith(QLatin1String("SDK.")))
qtId = QString::fromLatin1("SDK.") + qt; qtId = QString::fromLatin1("SDK.") + qt;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment