Qt Creator build with the MinGW toolchain is slowish

 ̄綄美尐妖づ 提交于 2020-01-06 04:26:09

问题


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

Any fix?


回答1:


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.

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

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

  • Compilers from the Windows SDK, for 3 different architectures
  • "Microsoft Visual C++ Compiler 10.0" for 2 different architectures
  • "Microsoft Visual C++ Compiler 14.0" for 3 different architectures

The one I selected is "Microsoft Visual C++ Compiler 14.0 (x86)"

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



来源:https://stackoverflow.com/questions/39253439/qt-creator-build-with-the-mingw-toolchain-is-slowish

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!