forked from qt-creator/qt-creator
In Profile or Release mode use Qt Quick Compiler if supported
Also, use the proper API for determining QML debugging support. Change-Id: I9038fb74fcee1f87a7687343ef51e115c8a93936 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -569,6 +569,8 @@ QmakeBuildInfo *QmakeBuildConfigurationFactory::createBuildInfo(const Kit *k,
|
||||
info->displayName = tr("Release");
|
||||
//: Non-ASCII characters in directory suffix may cause build issues.
|
||||
suffix = tr("Release", "Shadow build directory suffix");
|
||||
if (version && version->isQtQuickCompilerSupported())
|
||||
info->config.useQtQuickCompiler = true;
|
||||
} else {
|
||||
if (type == BuildConfiguration::Debug) {
|
||||
//: The name of the debug build configuration created by default for a qmake project.
|
||||
@@ -581,8 +583,10 @@ QmakeBuildInfo *QmakeBuildConfigurationFactory::createBuildInfo(const Kit *k,
|
||||
//: Non-ASCII characters in directory suffix may cause build issues.
|
||||
suffix = tr("Profile", "Shadow build directory suffix");
|
||||
info->config.separateDebugInfo = true;
|
||||
if (version && version->isQtQuickCompilerSupported())
|
||||
info->config.useQtQuickCompiler = true;
|
||||
}
|
||||
if (version && version->qtVersion().majorVersion >= 5)
|
||||
if (version && version->isQmlDebuggingSupported())
|
||||
info->config.linkQmlDebuggingQQ2 = true;
|
||||
}
|
||||
info->typeName = info->displayName;
|
||||
|
||||
Reference in New Issue
Block a user