forked from qt-creator/qt-creator
CompilationDb: Properly set up build info
Avoids e.g. soft asserts in TargetSetupWidget. Change-Id: I9640ada5d2d015c25c04ddfa2a2443b7444788db Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -524,13 +524,14 @@ CompilationDatabaseBuildConfigurationFactory::CompilationDatabaseBuildConfigurat
|
||||
}
|
||||
|
||||
QList<BuildInfo> CompilationDatabaseBuildConfigurationFactory::availableBuilds
|
||||
(const Kit *, const FilePath &, bool) const
|
||||
(const Kit *kit, const FilePath &, bool) const
|
||||
{
|
||||
const QString name = tr("Release");
|
||||
ProjectExplorer::BuildInfo info(this);
|
||||
info.typeName = name;
|
||||
info.displayName = name;
|
||||
info.buildType = BuildConfiguration::Release;
|
||||
info.kitId = kit->id();
|
||||
return {info};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user