forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user