diff --git a/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp b/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp index 08e41558e82..1ac1ced79d6 100644 --- a/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp +++ b/src/plugins/qbsprojectmanager/qbsprofilemanager.cpp @@ -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; } }