Commit 87b99545 authored by Ulf Hermann's avatar Ulf Hermann

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: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 212f6077
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment