QbsProjectManager: Ensure profile for kit without Qt and toolchain

Change-Id: I52f2bad18570587fe1bca8ad20692993e04cef76
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2021-08-09 13:23:44 +02:00
parent b489afd91b
commit 71f2e7566d

View File

@@ -237,6 +237,8 @@ QString QbsProfileManager::runQbsConfig(QbsConfigOp op, const QString &key, cons
const QVariantMap props = value.toMap();
for (auto it = props.begin(); it != props.end(); ++it)
args << it.key() << toJSLiteral(it.value());
if (props.isEmpty()) // Make sure we still create a profile for "empty" kits.
args << "qbs.optimization" << toJSLiteral(QString("none"));
break;
}
}