使用MinGW工具链构建的Qt Creator速度较慢 [英] Qt Creator build with the MinGW toolchain is slowish

查看:171
本文介绍了使用MinGW工具链构建的Qt Creator速度较慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows上使用MinGW工具链在Qt Creator中进行构建时,构建速度较慢.一个小项目需要21秒.

When building in Qt Creator using the MinGW toolchain, on Windows, the build is slowish. Takes 21sec for a tiny project.

任何解决方法?

推荐答案

此修复程序是切换到Microsoft工具链(包括MSVC编译器和CDB调试器). Qt Creator支持该工具链.这使我的构建时间从21秒减少到11秒.

The fix was to switch to the Microsoft toolchain (including the MSVC compiler and the CDB debugger). Qt Creator supports that toolchain. This brought down build time for me from 21 to 11sec.

此外,它带来了从上次构建开始没有任何变化的构建"从4秒变为0秒,这也是一个巨大的胜利.

Also, it brought "build when nothing has changed from the last build" from 4 to 0sec which is a big win as well.

注意:Qt Creator选项中的编译器"选项卡列出了大量MSVC编译器,包括:

Note: The "Compilers" tab in Qt Creator's options listed a big bunch of MSVC compilers, including:

  • Windows SDK的编译器,适用于3种不同的体系结构
  • 用于2种不同体系结构的"Microsoft Visual C ++编译器10.0"
  • 用于3种不同体系结构的"Microsoft Visual C ++编译器14.0"

我选择的是"Microsoft Visual C ++编译器14.0(x86)"

免责声明:其他系统上的性能可能有所不同.我正在运行32位Windows 7系统.

Disclaimer: performance may be different on other systems. I'm running a 32bit Windows 7 system.

这篇关于使用MinGW工具链构建的Qt Creator速度较慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆